• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            C++ Programmer's Cookbook

            {C++ 基礎} {C++ 高級} {C#界面,C++核心算法} {設計模式} {C#基礎}

            c++\CLI與c#

            Description C++/CLI C#
            Allocate reference type ReferenceType^ h = gcnew ReferenceType; ReferenceType h = new ReferenceType();
            Allocate value type ValueType v(3, 4); ValueType v = new ValueType(3, 4);
            Reference type, stack semantics ReferenceType h; N/A
            Calling Dispose method ReferenceType^ h = gcnew ReferenceType;

            delete h;

            ReferenceType h = new ReferenceType();

            ((IDisposable)h).Dispose();

            Implementing Dispose method ~TypeName() {} void IDisposable.Dispose() {}
            Implementing Finalize method !TypeName() {} ~TypeName() {}
            Boxing int^ h = 123; object h = 123;
            Unboxing int^ hi = 123;

            int c = *hi;

            object h = 123;

            int i = (int) h;

            Reference type definition ref class ReferenceType {};

            ref struct ReferenceType {};

            class ReferenceType {}
            Value type definition value class ValueType {};

            value struct ValueType {};

            struct ValueType {}
            Using properties h.Prop = 123;

            int v = h.Prop;

            h.Prop = 123;

            int v = h.Prop;

            Property definition property String^ Name
            {
            ??? String^ get()
            ??? {
            ??????? return m_value;
            ??? }
            ??? void set(String^ value)
            ??? {
            ??????? m_value = value;
            ??? }
            }
            string Name
            {
            ??? get
            ??? {
            ??????? return m_name;
            ??? }
            ??? set
            ??? {
            ??????? m_name = value;
            ??? }

            posted on 2006-08-17 16:46 夢在天涯 閱讀(1268) 評論(0)  編輯 收藏 引用 所屬分類: C#/.NETManage c++ /CLI

            公告

            EMail:itech001#126.com

            導航

            統(tǒng)計

            • 隨筆 - 461
            • 文章 - 4
            • 評論 - 746
            • 引用 - 0

            常用鏈接

            隨筆分類

            隨筆檔案

            收藏夾

            Blogs

            c#(csharp)

            C++(cpp)

            Enlish

            Forums(bbs)

            My self

            Often go

            Useful Webs

            Xml/Uml/html

            搜索

            •  

            積分與排名

            • 積分 - 1804363
            • 排名 - 5

            最新評論

            閱讀排行榜

            久久精品亚洲中文字幕无码麻豆| 久久综合久久久| 亚洲欧洲精品成人久久奇米网| 国产精品99久久久久久猫咪| 久久久青草青青国产亚洲免观| 久久精品国产一区二区三区| 四虎亚洲国产成人久久精品| 国产精品久久久久久久久久影院| 久久久噜噜噜久久中文字幕色伊伊| 亚洲AV无码久久| 精品无码久久久久久久久久| 狠狠色丁香久久婷婷综合_中| 99精品久久精品一区二区| 久久国产高清字幕中文| 久久这里都是精品| 久久精品国产精品青草app| 天天影视色香欲综合久久| 狼狼综合久久久久综合网| .精品久久久麻豆国产精品| 色偷偷88欧美精品久久久| 精品久久777| 亚洲中文久久精品无码ww16| 久久青草国产精品一区| 亚洲国产另类久久久精品小说 | 久久国产成人精品麻豆| 亚州日韩精品专区久久久| 亚洲成人精品久久| 久久久免费精品re6| 久久婷婷午色综合夜啪| 久久精品国产一区二区三区| 久久99精品综合国产首页| 无码专区久久综合久中文字幕| 九九久久精品国产| 国产成人AV综合久久| 国产精品久久波多野结衣| 久久人人爽人人爽人人AV东京热 | 久久婷婷国产综合精品| 久久精品视频一| 久久精品国产一区二区电影| 久久中文娱乐网| 亚洲国产精品久久|