问一下大家,下面两句话什么意思啊,尤其是" :this() "我看不懂啊public test (string title, string text) : this() { Title = title; Text = text; }
public test (string text) : this() { Text = text; }还有翻译成vb.net语言应该是什么样的啊!,小第先谢了.Public Sub test(ByVal title As String, ByVal text As String)
            Title = Title
            Text = Text
        End Sub这样不对吧!!

解决方案 »

  1.   

    :this()是调用本类不带参数的构造函数
    应该是这样,我只用过base(...)转成vb.net就不知道这个:this()怎么用了
      

  2.   

    Public Sub test(ByVal title As String, ByVal text As String)
      myclass.test
      Title = Title
      Text = Text
    End Sub
      

  3.   

    还想问一下"yezie(椰子) "[StructLayout (LayoutKind.Explicit)] protected struct RECT
    {
    [FieldOffset (0)] public Int32 Left;
    [FieldOffset (4)] public Int32 Top;
    [FieldOffset (8)] public Int32 Right;
    [FieldOffset (12)] public Int32 Bottom; public RECT (System.Drawing.Rectangle bounds)
    {
    Left = bounds.Left;
    Top = bounds.Top;
    Right = bounds.Right;
    Bottom = bounds.Bottom;
    }
    }上面这两段我都不懂,什么物理内存啊,转成vb.net 会是什么样子啊,谢
      

  4.   

    还想问一下"yezie(椰子) "[StructLayout (LayoutKind.Explicit)] protected struct RECT
    {
    [FieldOffset (0)] public Int32 Left;
    [FieldOffset (4)] public Int32 Top;
    [FieldOffset (8)] public Int32 Right;
    [FieldOffset (12)] public Int32 Bottom; public RECT (System.Drawing.Rectangle bounds)
    {
    Left = bounds.Left;
    Top = bounds.Top;
    Right = bounds.Right;
    Bottom = bounds.Bottom;
    }
    }上面这两段我都不懂,什么物理内存啊,转成vb.net 会是什么样子啊,谢