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(); }
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(); }