/// <summary> /// Returns LastUpdate as a formatted string (ex. July 29, 2015 at 12:00 PM) /// </summary> /// <returns></returns> public string GetLastUpdatedAsString() { if (LastUpdated.Equals(DateTime.MinValue)) { return("Never"); } return(GetDateTimeAsFormattedString(LastUpdated)); }
public bool Equals(WorkspaceBranch other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Id, other.Id) && VersionCounter == other.VersionCounter && Created.Equals(other.Created) && LastUpdated.Equals(other.LastUpdated) && string.Equals(CreatedBy, other.CreatedBy) && string.Equals(WorkspaceId, other.WorkspaceId) && string.Equals(BranchName, other.BranchName)); }
public bool Equals(Reference other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(CreatedBy, other.CreatedBy) && Created.Equals(other.Created) && LastUpdated.Equals(other.LastUpdated) && string.Equals(Id, other.Id) && VersionCounter == other.VersionCounter && string.Equals(RootWorkspace, other.RootWorkspace) && string.Equals(Source, other.Source) && string.Equals(Target, other.Target) && Type == other.Type && ReturnValue == other.ReturnValue && Order == other.Order && string.Equals(Description, other.Description)); }
public bool Equals(Tag other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Name, other.Name) && string.Equals(CreatedBy, other.CreatedBy) && Created.Equals(other.Created) && LastUpdated.Equals(other.LastUpdated) && string.Equals(Id, other.Id) && VersionCounter == other.VersionCounter && string.Equals(RootWorkspace, other.RootWorkspace) && Equals(Components, other.Components) && Equals(References, other.References) && string.Equals(Description, other.Description)); }
public bool EqualsIgnoreChildren(Component other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Name, other.Name) && string.Equals(Model, other.Model) && string.Equals(State, other.State) && string.Equals(CreatedBy, other.CreatedBy) && Created.Equals(other.Created) && LastUpdated.Equals(other.LastUpdated) && string.Equals(Id, other.Id) && VersionCounter == other.VersionCounter && string.Equals(Version, other.Version) && string.Equals(RootWorkspace, other.RootWorkspace) && string.Equals(Parent, other.Parent) && string.Equals(Type, other.Type) && string.Equals(TypeId, other.TypeId) && string.Equals(Description, other.Description) && FieldEquals(Fields, other.Fields)); }
public bool Equals(DbaseFileHeader other) => other != null && LastUpdated.Equals(other.LastUpdated) && CodePage.Equals(other.CodePage) && RecordCount.Equals(other.RecordCount) && Schema.Equals(other.Schema);
/// <summary> /// Returns true if BankingProduct instances are equal /// </summary> /// <param name="other">Instance of BankingProduct to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingProduct other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProductId == other.ProductId || ProductId != null && ProductId.Equals(other.ProductId) ) && ( EffectiveFrom == other.EffectiveFrom || EffectiveFrom != null && EffectiveFrom.Equals(other.EffectiveFrom) ) && ( EffectiveTo == other.EffectiveTo || EffectiveTo != null && EffectiveTo.Equals(other.EffectiveTo) ) && ( LastUpdated == other.LastUpdated || LastUpdated != null && LastUpdated.Equals(other.LastUpdated) ) && ( ProductCategory == other.ProductCategory || ProductCategory != null && ProductCategory.Equals(other.ProductCategory) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( Brand == other.Brand || Brand != null && Brand.Equals(other.Brand) ) && ( BrandName == other.BrandName || BrandName != null && BrandName.Equals(other.BrandName) ) && ( ApplicationUri == other.ApplicationUri || ApplicationUri != null && ApplicationUri.Equals(other.ApplicationUri) ) && ( IsTailored == other.IsTailored || IsTailored != null && IsTailored.Equals(other.IsTailored) ) && ( AdditionalInformation == other.AdditionalInformation || AdditionalInformation != null && AdditionalInformation.Equals(other.AdditionalInformation) )); }
public bool Equals(WeatherCollection other) { return(Equals(WeatherReading, other.WeatherReading) && RunTime.Equals(other.RunTime) && LastUpdated.Equals(other.LastUpdated) && string.Equals(ETag, other.ETag)); }
/// <inheritdoc /> public bool Equals(ChangeStatistics?other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Adds == other.Adds && Updates == other.Updates && Removes == other.Removes && Refreshes == other.Refreshes && Moves == other.Moves && Count == other.Count && Index == other.Index && LastUpdated.Equals(other.LastUpdated)); }