public RoyalGazetteIssue(RoyalGazetteIssue value) { IssuePostfix = value.IssuePostfix; IssuePrefix = value.IssuePrefix; IssueNumber = value.IssueNumber; IssueBook = value.IssueBook; }
public RoyalGazette() { Description = string.Empty; URI = string.Empty; Volume = 0; PageInfo = new RoyalGazettePageinfo(); Issue = new RoyalGazetteIssue(); Title = String.Empty; SubTitle = String.Empty; Publication = new DateTime(); Sign = new DateTime(); Effective = new DateTime(); SignedBy = String.Empty; SignedByPosition = GazetteSignPosition.Unknown; }
public RoyalGazette(RoyalGazette value) { Description = value.Description; Volume = value.Volume; URI = value.URI; PageInfo = new RoyalGazettePageinfo(value.PageInfo); Issue = new RoyalGazetteIssue(value.Issue); Title = value.Title; SubTitle = value.SubTitle; Publication = value.Publication; Sign = value.Sign; Effective = value.Effective; SignedByPosition = value.SignedByPosition; SignedBy = value.SignedBy; foreach (RoyalGazetteContent entry in value.Content) { RoyalGazetteContent lNewContent = (RoyalGazetteContent)entry.Clone(); Content.Add(lNewContent); } }
public int CompareTo(object iOther) { if (iOther is RoyalGazetteIssue) { Int32 retval = 0; RoyalGazetteIssue lOther = (RoyalGazetteIssue)iOther; retval = IssueBook.CompareTo(lOther.IssueBook); if (retval == 0) { retval = IssueNumber.CompareTo(lOther.IssueNumber); if (retval == 0) { retval = String.Compare(IssuePrefix, lOther.IssuePrefix); if (retval == 0) { retval = String.Compare(IssuePostfix, lOther.IssuePostfix); } } } return(retval); } throw new InvalidCastException("Not a RoyalGazetteIssue"); }