public object Clone() { DmiEX newDmiex = new DmiEX(Version, Width, Height); foreach (var state in States) { DmiEXState dmiExState = (DmiEXState)state; newDmiex.AddState((DmiEXState)dmiExState.Clone()); } return(newDmiex); }
public static DmiEX FromDmi(Dmi dmi) { DmiEX dmiEx = new DmiEX(dmi.Version, dmi.Width, dmi.Height); foreach (var state in dmi.States) { dmiEx.AddState(DmiEXState.FromDmiState(dmiEx, state)); } return(dmiEx); }