private static IItem MoveNext(int state) { IItem current = null; switch (state) { case 0: current = new SomeItem(); break; case 1: current = new AnotherItem(); break; case 2: current = new YetAnotherItem(); break; case 3: current = new YetAnotherItem(); break; case 4: current = new YetAnotherItem(); break; } return(current); }
private static IItem CreateItem(int index) { IItem current = null; switch (index) { case 0: current = new SomeItem(); break; case 1: current = new AnotherItem(); break; case 2: current = new YetAnotherItem(); break; case 3: current = new YetAnotherItem(); break; case 4: current = new YetAnotherItem(); break; } return(current); }
public void CopyProperties(QnSProjectAward.Contracts.Business.Account.IIdentityUser other) { if (other == null) { throw new System.ArgumentNullException(nameof(other)); } bool handled = false; BeforeCopyProperties(other, ref handled); if (handled == false) { Id = other.Id; OneItem.CopyProperties(other.OneItem); AnotherItem.CopyProperties(other.AnotherItem); } AfterCopyProperties(other); }