示例#1
0
            public DMC(string type, string size)
            {
                switch (type.ToLower())
                {
                    case "queue":
                        this.type = DMCType.Queue;
                        break;

                    case "ringbuffer":
                        this.type = DMCType.Ringbuffer;
                        break;
                }

                this.size = (size == null
                             ? 0
                             : Convert.ToUInt32(size));
            }
示例#2
0
 public DMC(DMCType type, uint size)
 {
     this.type = type;
     this.size = size;
 }