Пример #1
0
 public XElement ToXml() => new XElement(
     nameof(AnnotatedUsage),
     Usage.ToXml().Attributes(),
     Project.ToXAttributeIfNotNull(nameof(Project)),
     SourceBuildPackageIdCreator.ToXAttributeIfNotNull(nameof(SourceBuildPackageIdCreator)),
     ProdConPackageIdCreator.ToXAttributeIfNotNull(nameof(ProdConPackageIdCreator)),
     EndsUpInOutput.ToXAttributeIfTrue(nameof(EndsUpInOutput)));
Пример #2
0
 public XElement ToXml() => new XElement(
     nameof(AnnotatedUsage),
     Usage.ToXml().Attributes(),
     Project.ToXAttributeIfNotNull(nameof(Project)),
     SourceBuildPackageIdCreator.ToXAttributeIfNotNull(nameof(SourceBuildPackageIdCreator)),
     ProdConPackageIdCreator.ToXAttributeIfNotNull(nameof(ProdConPackageIdCreator)),
     TestProjectByHeuristic.ToXAttributeIfTrue(nameof(TestProjectByHeuristic)),
     TestProjectOnlyByHeuristic.ToXAttributeIfTrue(nameof(TestProjectOnlyByHeuristic)),
     IsDirectDependency.ToXAttributeIfTrue(nameof(IsDirectDependency)),
     IsAutoReferenced.ToXAttributeIfTrue(nameof(IsAutoReferenced)),
     EndsUpInOutput.ToXAttributeIfTrue(nameof(EndsUpInOutput)));