38 references to GetOrDefault
Microsoft.DotNet.VersionTools (38)
BuildManifest\Model\BlobArtifactModel.cs (6)
23get { return Attributes.GetOrDefault(nameof(Id)); } 31string val = Attributes.GetOrDefault(nameof(NonShipping)); 42get => Attributes.GetOrDefault(nameof(RepoOrigin)); 50string val = Attributes.GetOrDefault(nameof(Visibility)); 90if (other.Attributes.GetOrDefault(localAttr.Key) != null) 96other.Attributes.GetOrDefault(localAttr.Key),
BuildManifest\Model\BuildIdentity.cs (9)
39get { return Attributes.GetOrDefault(nameof(Name)); } 45get { return Attributes.GetOrDefault(nameof(BuildId)); } 51get { return Attributes.GetOrDefault(nameof(ProductVersion)); } 57get { return Attributes.GetOrDefault(nameof(Branch)); } 63get { return Attributes.GetOrDefault(nameof(Commit)); } 71string value = Attributes.GetOrDefault(nameof(IsStable)); 93string value = Attributes.GetOrDefault(nameof(IsReleaseOnlyPackageVersion)); 113get { return Attributes.GetOrDefault(nameof(VersionStamp)); } 120string value = Attributes.GetOrDefault(nameof(PublishingVersion));
BuildManifest\Model\EndpointModel.cs (3)
27get { return Attributes.GetOrDefault(nameof(Id)); } 33get { return Attributes.GetOrDefault(nameof(Type)); } 39get { return Attributes.GetOrDefault(nameof(Url)); }
BuildManifest\Model\PackageArtifactModel.cs (8)
29get { return Attributes.GetOrDefault(nameof(Id)); } 35get { return Attributes.GetOrDefault(nameof(Version)); } 41get { return Attributes.GetOrDefault(nameof(OriginBuildName)); } 49string val = Attributes.GetOrDefault(nameof(NonShipping)); 62string val = Attributes.GetOrDefault(nameof(Visibility)); 84get => Attributes.GetOrDefault(nameof(RepoOrigin)); 108if (other.Attributes.GetOrDefault(localAttr.Key) != null) 114other.Attributes.GetOrDefault(localAttr.Key),
BuildManifest\Model\SigningInformationModel.cs (12)
90get { return Attributes.GetOrDefault(nameof(Include)); } 96get { return Attributes.GetOrDefault(nameof(CertificateName)); } 126get { return Attributes.GetOrDefault(nameof(Include)); } 132get { return Attributes.GetOrDefault(nameof(CertificateName)); } 138get { return Attributes.GetOrDefault(nameof(TargetFramework)); } 144get { return Attributes.GetOrDefault(nameof(PublicKeyToken)); } 175get { return Attributes.GetOrDefault(nameof(Include)); } 181get { return bool.Parse(Attributes.GetOrDefault(nameof(DualSigningAllowed))); } 211get { return Attributes.GetOrDefault(nameof(Include)); } 242get { return Attributes.GetOrDefault(nameof(Include)); } 247get { return Attributes.GetOrDefault(nameof(PublicKeyToken)); } 252get { return Attributes.GetOrDefault(nameof(CertificateName)); }