public static NamespaceGenerator Namespace(string @namespace) { var namespc = new NamespaceGenerator(); namespc.@namespace = @namespace; return(namespc); }
private void BeforeGeneration() { if (!(string.IsNullOrEmpty(decorated.@namespace) || string.IsNullOrWhiteSpace(decorated.@namespace))) { @namespace = NamespaceGenerator.Namespace([email protected]()); } @interface = InterfaceGenerator.Interface(decorated.title); guid = decorated.GetGUID(); }
private void BeforeGeneration() { if (!(string.IsNullOrEmpty(decorated.@namespace) || string.IsNullOrWhiteSpace(decorated.@namespace))) { @namespace = NamespaceGenerator.Namespace([email protected]()); } @enum = EnumGenerator.Enum(decorated.title.LegalMemberName()); guid = decorated.GetGUID(); }
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(); }