示例#1
0
 public GBody(IList <string> gStatements = default, IGComment <TValue> gComment = default
              )
 {
     GStatements = gStatements == default ? new List <string>() : gStatements;
     GComment    = gComment == default ? new GComment <TValue>() : gComment;
     Id          = new GBodyId <TValue>();
 }
示例#2
0
 public GAttribute(string gName       = "", string gValue = "",
                   IGComment gComment = default
                   )
 {
     GName    = gName;
     GValue   = gValue;
     GComment = gComment == default ? new GComment() : gComment;
     Id       = new GAttributeId <TValue>();
 }
示例#3
0
 public GDelegateDeclaration(string gName = default, string gType = default, string gVisibility = default,
                             Dictionary <IGArgumentId <TValue>, IGArgument <TValue> > gArguments = default,
                             IGComment gComment = default)
 {
     GName       = gName == default ? "" : gName;
     GVisibility = gVisibility == default ? "" : gVisibility;
     GType       = gType == default ? "" : gType;
     GArguments  = gArguments == default ? new Dictionary <IGArgumentId <TValue>, IGArgument <TValue> >() : gArguments;
     GComment    = gComment == default ? new GComment() : gComment;
     Id          = new GDelegateDeclarationId <TValue>();
 }
示例#4
0
 public GMethod(IGMethodDeclaration gDeclaration = default, IGBody gBody = default,
                IGComment gComment = default, bool isForInterface        = false,
                IGStateConfiguration gStateConfiguration = default)
 {
     GDeclaration        = gDeclaration == default ? new GMethodDeclaration() : gDeclaration;
     GBody               = gBody == default ? new GBody() : gBody;
     GComment            = gComment == default ? new GComment() : gComment;
     IsForInterface      = isForInterface;
     GStateConfiguration = gStateConfiguration == default ? new GStateConfiguration() : gStateConfiguration;
     Id = new GMethodId <TValue>();
 }
        public GAssemblyGroup(string gName = "", string gDescription = "", string gRelativePath = "",

                              IDictionary <IGAssemblyUnitId <TValue>, IGAssemblyUnit <TValue> > gAssemblyUnits = default,
                              IGPatternReplacement gPatternReplacement = default,
                              IGComment gComment = default
                              )
        {
            GName               = gName;
            GDescription        = gDescription;
            GRelativePath       = gRelativePath;
            GAssemblyUnits      = gAssemblyUnits == default ? new Dictionary <IGAssemblyUnitId <TValue>, IGAssemblyUnit <TValue> >() : gAssemblyUnits;
            GPatternReplacement = gPatternReplacement == default ? new GPatternReplacement() : gPatternReplacement;
            GComment            = gComment == default ? new GComment() : gComment;

            Id = new GAssemblyGroupId <TValue>();
        }
        public GProjectUnit(string gName = default, string gRelativePath = default, string gFileSuffix = default,
                            Dictionary <IGPropertyGroupInProjectUnitId <TValue>, IGPropertyGroupInProjectUnit <TValue> > gPropertyGroupInProjectUnits = default,
                            Dictionary <IGItemGroupInProjectUnitId <TValue>, IGItemGroupInProjectUnit <TValue> > gItemGroupInProjectUnits             = default,
                            Dictionary <IGResourceUnitId <TValue>, IGResourceUnit <TValue> > gResourceUnits = default,
                            IGPatternReplacement <TValue> gPatternReplacement = default,
                            IGComment <TValue> gComment = default

                            )
        {
            GName         = gName == default ? "" : gName;
            GRelativePath = gRelativePath == default ? "" : gRelativePath;
            GFileSuffix   = gFileSuffix == default ? ".csproj" : gFileSuffix;
            GPropertyGroupInProjectUnits = gPropertyGroupInProjectUnits == default ? new Dictionary <IGPropertyGroupInProjectUnitId <TValue>, IGPropertyGroupInProjectUnit <TValue> >() : gPropertyGroupInProjectUnits;
            GItemGroupInProjectUnits     = gItemGroupInProjectUnits == default ? new Dictionary <IGItemGroupInProjectUnitId <TValue>, IGItemGroupInProjectUnit <TValue> >() : gItemGroupInProjectUnits;
            GResourceUnits      = gResourceUnits == default ? new Dictionary <IGResourceUnitId <TValue>, IGResourceUnit <TValue> >() : gResourceUnits;
            GPatternReplacement = gPatternReplacement == default ? new GPatternReplacement <TValue>() : gPatternReplacement;
            GComment            = gComment == default ? new GComment <TValue>() : gComment;
            Id = new GProjectUnitId <TValue>();
        }
 public GAssemblyUnit(string gName = default, string gRelativePath = default,
                      IGProjectUnit gProjectUnit = default,
                      IDictionary <IGCompilationUnitId <TValue>, IGCompilationUnit <TValue> > gCompilationUnits = default,
                      IDictionary <IGPropertiesUnitId <TValue>, IGPropertiesUnit <TValue> > gPropertiesUnits    = default,
                      IDictionary <IGResourceUnitId <TValue>, IGResourceUnit <TValue> > gResourceUnits          = default,
                      IGPatternReplacement gPatternReplacement = default,
                      IGComment gComment = default
                      )
 {
     GName               = gName == default ? "" : gName;
     GRelativePath       = gRelativePath == default ? "" : gRelativePath;
     GProjectUnit        = gProjectUnit == default? new GProjectUnit(GName) : gProjectUnit;
     GCompilationUnits   = gCompilationUnits == default ? new Dictionary <IGCompilationUnitId <TValue>, IGCompilationUnit <TValue> >() : gCompilationUnits;
     GPropertiesUnits    = gPropertiesUnits == default ? new Dictionary <IGPropertiesUnitId <TValue>, IGPropertiesUnit <TValue> >() : gPropertiesUnits;
     GResourceUnits      = gResourceUnits == default ? new Dictionary <IGResourceUnitId <TValue>, IGResourceUnit <TValue> >() : gResourceUnits;
     GComment            = gComment == default? new GComment() : gComment;
     GPatternReplacement = gPatternReplacement == default? new GPatternReplacement() : gPatternReplacement;
     Id = new GAssemblyUnitId <TValue>();
 }
 public GSolutionSignil(
     bool hasPropsAndTargets          = default
     , bool hasEditorConfig           = default
     , bool hasArtifacts              = default
     , bool hasDevLog                 = default
     , bool hasDocumentation          = default
     , string sourceRelativePath      = default
     , string testsRelativePath       = default
     , bool hasOmniSharpConfiguration = default
     , bool hasVisualStudioCodeWorkspaceConfiguration      = default
     , bool hasVisualStudioIISApplicationHostConfiguration = default
     , bool hasDataBases = default
     , ICollection <string> buildConfigurations = default
     , ICollection <string> cPUConfigurations   = default
     , IDictionary <IGProjectUnitId <TValue>, IGProjectUnit <TValue> > gDependencyPackages = default
     , IDictionary <IGProjectUnitId <TValue>, IGProjectUnit <TValue> > gDependencyProjects = default
     , IGComment <TValue>?gComment = default
     , IGPatternReplacement <TValue>?gPatternReplacement = default
     )
 {
     HasPropsAndTargets        = hasPropsAndTargets == default ? false : hasPropsAndTargets;
     HasEditorConfig           = hasEditorConfig == default ? false : hasEditorConfig;
     HasArtifacts              = hasArtifacts == default ? false : hasArtifacts;
     HasDevLog                 = hasDevLog == default ? false : hasDevLog;
     HasDocumentation          = hasDocumentation == default ? false : hasDocumentation;
     SourceRelativePath        = sourceRelativePath == default ? "" : sourceRelativePath;
     TestsRelativePath         = testsRelativePath == default ? "" : testsRelativePath;
     HasOmniSharpConfiguration = hasOmniSharpConfiguration == default ? false : hasOmniSharpConfiguration;
     HasVisualStudioCodeWorkspaceConfiguration      = hasVisualStudioCodeWorkspaceConfiguration == default ? false : hasVisualStudioCodeWorkspaceConfiguration;
     HasVisualStudioIISApplicationHostConfiguration = hasVisualStudioIISApplicationHostConfiguration == default ? false : hasVisualStudioIISApplicationHostConfiguration;
     HasDataBases        = hasDataBases == default ? false : hasDataBases;
     BuildConfigurations = buildConfigurations ?? throw new ArgumentNullException(nameof(buildConfigurations));
     CPUConfigurations   = cPUConfigurations ?? throw new ArgumentNullException(nameof(cPUConfigurations));
     GComment            = gComment == default ? new GComment <TValue>() : gComment;
     GPatternReplacement = gPatternReplacement == default ? new GPatternReplacement <TValue>() : gPatternReplacement;
     GDependencyPackages = gDependencyPackages ?? throw new ArgumentNullException(nameof(gDependencyPackages));
     GDependencyProjects = gDependencyProjects ?? throw new ArgumentNullException(nameof(gDependencyProjects));
     Id = new GSolutionSignilId <TValue>();
 }
示例#9
0
        public GNamespace(string gName = "", IDictionary <IGClassId <TValue>, IGClass <TValue> >?gClasss = default,
                          IDictionary <IGInterfaceId <TValue>, IGInterface <TValue> >?gInterfaces                      = default,
                          IDictionary <IGDelegateId <TValue>, IGDelegate <TValue> >?gDelegates                         = default,
                          IDictionary <IGDelegateGroupId <TValue>, IGDelegateGroup <TValue> >?gDelegateGroups          = default,
                          IDictionary <IGEnumerationId <TValue>, IGEnumeration <TValue> >?gEnumerations                = default,
                          IDictionary <IGEnumerationGroupId <TValue>, IGEnumerationGroup <TValue> >?gEnumerationGroups = default,
                          //IDictionary<IGEnumerationId<TValue>, IGEnumeration<TValue>>? gEnumerations = default,
                          //IDictionary<IGExceptionId<TValue>, IGException<TValue>>? gExceptions = default
                          IGComment gComment = default

                          )
        {
            GName              = gName;
            GClasss            = gClasss == default ? new Dictionary <IGClassId <TValue>, IGClass <TValue> >() : gClasss;
            GInterfaces        = gInterfaces == default ? new Dictionary <IGInterfaceId <TValue>, IGInterface <TValue> >() : gInterfaces;
            GDelegates         = gDelegates == default ? new Dictionary <IGDelegateId <TValue>, IGDelegate <TValue> >() : gDelegates;
            GDelegateGroups    = gDelegateGroups == default ? new Dictionary <IGDelegateGroupId <TValue>, IGDelegateGroup <TValue> >() : gDelegateGroups;
            GEnumerations      = gEnumerations == default ? new Dictionary <IGEnumerationId <TValue>, IGEnumeration <TValue> >() : gEnumerations;
            GEnumerationGroups = gEnumerationGroups == default ? new Dictionary <IGEnumerationGroupId <TValue>, IGEnumerationGroup <TValue> >() : gEnumerationGroups;
            //GEnumerations = gEnumerations;
            //GExceptions = gExceptions;
            GComment = gComment == default ? new GComment() : gComment;
            Id       = new GNamespaceId <TValue>();
        }
示例#10
0
 public static IR1Top RComment(this IR1Top r1Top, IGComment gComment)
 {
     r1Top.RStatementList(gComment.GStatements);
     return(r1Top);
 }
示例#11
0
 public GDelegate(IGDelegateDeclaration gDelegateDeclaration = default, IGComment gComment = default)
 {
     GDelegateDeclaration = gDelegateDeclaration == default ? new GDelegateDeclaration() : gDelegateDeclaration;
     GComment             = gComment == default ? new GComment() : gComment;
     Id = new GDelegateId <TValue>();
 }
 public GStaticVariable(string gName = default, string gType = default, string gVisibility = default, string gAccessModifier = default,
                        IGBody gBody = default, IList <string> gAdditionalStatements = default, IGComment gComment = default)
 {
     GName                 = gName == default ? "" : gName;
     GVisibility           = gVisibility == default ? "" : gVisibility;
     GType                 = gType == default ? "" : gType;
     GAccessModifier       = gAccessModifier == default ? "" : gAccessModifier;
     GBody                 = gBody == default ? new GBody() : gBody;
     GAdditionalStatements = gAdditionalStatements == default ? new List <string>() : gAdditionalStatements;
     GComment              = gComment == default ? new GComment() : gComment;
     Id = new GStaticVariableId <TValue>();
 }
 public GItemGroupInProjectUnit(string gName = "", string gDescription = "", IGBody gBody = default, IGComment gComment = default)
 {
     GName        = gName ?? throw new ArgumentNullException(nameof(gName));
     GDescription = gDescription == default ? "" : gDescription;
     GBody        = gBody == default ? new GBody() : gBody;
     GComment     = gComment == default ? new GComment() : gComment;
     Id           = new GItemGroupInProjectUnitId <TValue>();
 }