예제 #1
0
 protected override void BeforeCompiledGeneration()
 {
     if (!(string.IsNullOrEmpty(decorated.@namespace) || string.IsNullOrWhiteSpace(decorated.@namespace)))
     {
         @namespace = NamespaceGenerator.Namespace([email protected]());
     }
     @class = ClassGenerator.Class(
         RootAccessModifier.Public,
         ClassModifier.None,
         NoSpace(decorated.title),
         decorated.inheritance.type);
     guid = decorated.GetGUID();
 }
예제 #2
0
 protected override void BeforeLiveGeneration()
 {
     if (!(string.IsNullOrEmpty(decorated.@namespace) || string.IsNullOrWhiteSpace(decorated.@namespace)))
     {
         @namespace = NamespaceGenerator.Namespace([email protected]().LegalMemberName());
     }
     @class = ClassGenerator.Class(
         RootAccessModifier.Public,
         ClassModifier.None,
         decorated.title.LegalMemberName(),
         decorated.inheritance.type);
     @class.AddAttribute(AttributeGenerator.Attribute <IncludeInSettingsAttribute>().AddParameter(true));
     @class.AddAttribute(AttributeGenerator.Attribute <InspectableAttribute>());
     @class.AddInterface(typeof(IUAClass));
     guid = decorated.GetGUID();
 }