• <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

            導航

            統計

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

            常用鏈接

            隨筆分類

            隨筆檔案

            收藏夾

            Blogs

            c#(csharp)

            C++(cpp)

            Enlish

            Forums(bbs)

            My self

            Often go

            Useful Webs

            Xml/Uml/html

            搜索

            •  

            積分與排名

            • 積分 - 1804663
            • 排名 - 5

            最新評論

            閱讀排行榜

            国产精品99久久久久久董美香| 欧美亚洲国产精品久久| 久久天天躁狠狠躁夜夜躁2O2O| 久久久久高潮综合影院| 无码国内精品久久人妻蜜桃| 久久精品国产亚洲av麻豆小说| 国产成人精品久久亚洲| 亚洲伊人久久成综合人影院 | 久久99精品久久久久久久不卡| 久久精品国产亚洲AV香蕉| 美女写真久久影院| 久久人人添人人爽添人人片牛牛| 久久精品午夜一区二区福利| 久久国产精品无码网站| 无码国产69精品久久久久网站| 国产成人久久久精品二区三区| 人人妻久久人人澡人人爽人人精品| 高清免费久久午夜精品| 亚洲精品视频久久久| 99久久超碰中文字幕伊人| 久久影院午夜理论片无码 | 精品久久久久久国产三级| 中文字幕日本人妻久久久免费| 久久综合给久久狠狠97色| 久久精品国产一区二区三区不卡| 香蕉久久av一区二区三区| 久久婷婷五月综合色99啪ak| 久久久久久亚洲AV无码专区| 亚洲国产婷婷香蕉久久久久久| 99久久精品免费看国产一区二区三区 | 国产成人精品综合久久久| 久久这里只有精品视频99| 26uuu久久五月天| 一本一道久久精品综合| 99久久婷婷免费国产综合精品| 18禁黄久久久AAA片| 伊色综合久久之综合久久| 久久久久国产| 久久久www免费人成精品| 久久婷婷五月综合97色直播| 国产69精品久久久久观看软件|