Пример #1
0
 private static CSharpProperty Property(string name, string relativeUri, CSharpIdentifier implementationType, CSharpIdentifier interfaceType = null, string description = null)
 => new CSharpProperty(interfaceType ?? implementationType.ToInterface(), name)
 {
     GetterExpression = new CSharpClassConstruction(implementationType)
     {
         Parameters =
         {
             Referrer,
             new CSharpParameter(CSharpIdentifier.String, "relativeUri")
             {
                 Value = relativeUri
             }
         }
     },
     Description = description
 };