• <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 夢在天涯 閱讀(1274) 評論(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

            搜索

            •  

            積分與排名

            • 積分 - 1807503
            • 排名 - 5

            最新評論

            閱讀排行榜

            久久久久久久综合日本亚洲| 久久只有这里有精品4| 久久免费线看线看| 精品无码久久久久久久动漫| 久久久久久久久66精品片| 久久精品中文闷骚内射| 九九久久精品无码专区| 欧美丰满熟妇BBB久久久| 国内精品伊人久久久久网站| 亚洲日本va中文字幕久久| 久久WWW免费人成—看片| 色婷婷综合久久久中文字幕| 久久影院午夜理论片无码 | 亚洲va久久久噜噜噜久久| AV无码久久久久不卡网站下载| 久久露脸国产精品| 国产精品久久久天天影视| 亚洲中文久久精品无码| 亚洲成av人片不卡无码久久| 青青青国产精品国产精品久久久久| 欧美日韩久久中文字幕| 三级韩国一区久久二区综合 | 国产亚洲美女精品久久久2020| 亚洲狠狠久久综合一区77777| 午夜精品久久久久久99热| 热久久视久久精品18| 色综合久久中文字幕综合网| 国产99久久九九精品无码| 欧美精品一区二区精品久久| 精品久久久久久国产潘金莲| 精品一二三区久久aaa片| 久久久久亚洲AV无码专区首JN| 四虎影视久久久免费观看| 久久精品视频一| 久久无码国产专区精品| 亚洲综合熟女久久久30p| 久久亚洲精品国产精品| 99久久国产热无码精品免费 | 国产成人精品综合久久久久| 亚洲精品美女久久久久99小说| 久久亚洲中文字幕精品一区|