public void DeepCopyFrom(OrderLocationKindInfo src) { System.Diagnostics.Debug.Assert(src != null); this.code = src.Code; this.description = src.description; }
public static OrderLocationKindInfo FindOrderLocationKindByKindCode(OrderLocationKind locationKind) { if (!orderLocationKindInfo.ContainsKey(locationKind)) { OrderLocationKindInfo unknown = new OrderLocationKindInfo(); unknown.Code = OrderLocationKind.Unknown; unknown.Description = OrderLocationKind.Unknown.ToString(); return(unknown); } OrderLocationKindInfo copy = new OrderLocationKindInfo(); copy.DeepCopyFrom(orderLocationKindInfo[locationKind]); return(copy); }