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

            搜索

            •  

            積分與排名

            • 積分 - 1811124
            • 排名 - 5

            最新評論

            閱讀排行榜

            香蕉久久夜色精品升级完成| 久久天天躁狠狠躁夜夜av浪潮| 久久久精品2019免费观看| 97精品国产91久久久久久| 久久国产视频99电影| 欧美噜噜久久久XXX| 久久综合九色综合欧美就去吻| 国内精品久久久久久久久电影网| 久久这里只有精品久久| 久久综合视频网| 久久99精品久久久久久不卡| MM131亚洲国产美女久久| 性欧美大战久久久久久久| 久久久久久狠狠丁香| 久久综合给合久久国产免费 | 亚洲成色999久久网站| 最新久久免费视频| 久久精品国产99久久久香蕉| 97久久国产亚洲精品超碰热 | 精品久久久久久中文字幕人妻最新| 久久国产三级无码一区二区| 国产A级毛片久久久精品毛片| 久久AV高清无码| 国产精品无码久久久久久| 日本人妻丰满熟妇久久久久久| 伊人色综合九久久天天蜜桃| 99久久婷婷国产综合精品草原| 久久久噜噜噜久久熟女AA片| 久久亚洲欧美国产精品| 久久久久高潮毛片免费全部播放| 97久久婷婷五月综合色d啪蜜芽 | 成人国内精品久久久久影院VR| 亚洲国产成人久久精品影视| 久久91综合国产91久久精品| 久久精品国产99国产精品澳门| 久久99精品国产| 99久久婷婷国产一区二区| 久久久久久毛片免费看| 国产精品久久久久蜜芽| 亚洲香蕉网久久综合影视| 精品久久久久久久无码|