public UserOptionTO(UserOption mdo) { this.number = mdo.Number; this.id = mdo.Id; this.name = mdo.Name; this.displayName = mdo.DisplayName; this.key = mdo.Key; this.reverseKey = mdo.ReverseKey; this.type = mdo.Type; this.primaryOption = mdo.PrimaryOption; }
public UserOptionArray(UserOption[] mdo) { if (mdo == null) { return; } options = new UserOptionTO[mdo.Length]; for (int i = 0; i < mdo.Length; i++) { options[i] = new UserOptionTO(mdo[i]); } count = mdo.Length; }