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)); }
public DMC(DMCType type, uint size) { this.type = type; this.size = size; }