• <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 夢在天涯 閱讀(1278) 評論(0)  編輯 收藏 引用 所屬分類: C#/.NETManage c++ /CLI

            公告

            EMail:itech001#126.com

            導航

            統計

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

            常用鏈接

            隨筆分類

            隨筆檔案

            收藏夾

            Blogs

            c#(csharp)

            C++(cpp)

            Enlish

            Forums(bbs)

            My self

            Often go

            Useful Webs

            Xml/Uml/html

            搜索

            •  

            積分與排名

            • 積分 - 1811117
            • 排名 - 5

            最新評論

            閱讀排行榜

            国产精品久久久久久| 91精品国产色综久久| 亚洲va久久久噜噜噜久久天堂| 无码人妻久久一区二区三区免费| 99久久免费国产精品热| 久久天天躁狠狠躁夜夜av浪潮| 久久久一本精品99久久精品66| 久久有码中文字幕| 大伊人青草狠狠久久| 久久久久亚洲av成人网人人软件 | 成人久久免费网站| 久久这里只有精品首页| 99精品国产99久久久久久97| 精品视频久久久久| 91精品国产综合久久婷婷| 久久国内免费视频| 久久亚洲高清综合| 国产精品va久久久久久久| 国产精品久久永久免费| 久久久女人与动物群交毛片| 日本五月天婷久久网站| 久久天天躁狠狠躁夜夜不卡 | 久久精品国产亚洲av麻豆图片| 久久国产精品偷99| 国产精品欧美亚洲韩国日本久久| 久久国产精品无码HDAV| 亚洲国产另类久久久精品小说| 香蕉久久永久视频| 伊人久久大香线蕉成人| 日本久久中文字幕| 婷婷久久综合九色综合绿巨人 | 精品久久人妻av中文字幕| 亚洲国产精品无码久久98| 中文字幕无码精品亚洲资源网久久 | 久久精品国产亚洲AV高清热| 久久久久久久久波多野高潮| 99久久这里只精品国产免费| 久久天天婷婷五月俺也去| 久久精品国产亚洲AV蜜臀色欲| 无遮挡粉嫩小泬久久久久久久 | 久久综合色之久久综合|