如题,VS不带这种功能的话有没有什么插件呢

解决方案 »

  1.   

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.Runtime .InteropServices  ;namespace WindowsFormsApplication7
    {
        public partial class Form1 : Form
        {
            [StructLayout(LayoutKind.Explicit)]
            class A
            {
                [FieldOffset(0)]
                int a;
                [FieldOffset(20)]
                int b;
            }        public Form1()
            {
                InitializeComponent();
            }
        }
    }
      

  2.   

    貌似惹上了不得了的东西,wartim能解释一下这两个特性的用途吗?我看描述不太明白,想学习一下另外我现在想要的效果是右击字段,封装字段的时候能控制生成属性的位置