예제 #1
0
        public static NamespaceGenerator Namespace(string @namespace)
        {
            var namespc = new NamespaceGenerator();

            namespc.@namespace = @namespace;
            return(namespc);
        }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }
예제 #4
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();
 }
예제 #5
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();
 }