Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 private TypeUsageInfo(string name, string typeNamespace, string shortName,
     TypeUsageInfoConfiguration configuration = TypeUsageInfoConfiguration.Class,
     TypeUsageInfo[] typeParameters = null,
     TypeArgumentConfiguration typeArgumentConfiguration = null)
     : base(name, typeNamespace)
 {
     _configuration = configuration;
     Namespace = typeNamespace;
     ShortName = shortName;
     TypeArgumentConfiguration = typeArgumentConfiguration;
     TypeArguments = typeParameters ?? new TypeUsageInfo[0];
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 private TypeUsageInfo(string name, string typeNamespace, string shortName,
                       TypeUsageInfoConfiguration configuration            = TypeUsageInfoConfiguration.Class,
                       TypeUsageInfo[] typeParameters                      = null,
                       TypeArgumentConfiguration typeArgumentConfiguration = null)
     : base(name, typeNamespace)
 {
     _configuration            = configuration;
     Namespace                 = typeNamespace;
     ShortName                 = shortName;
     TypeArgumentConfiguration = typeArgumentConfiguration;
     TypeArguments             = typeParameters ?? new TypeUsageInfo[0];
 }
Пример #3
0
 internal static TypeUsageInfo Create(string name, string typeNamespace, TypeUsageInfoConfiguration configuration, string shortName = null, TypeUsageInfo[] typeArguments = null)
 {
     return new TypeUsageInfo(name, typeNamespace, shortName, configuration, typeArguments);
 }
Пример #4
0
 internal static TypeUsageInfo Create(string name, string typeNamespace, TypeUsageInfoConfiguration configuration, string shortName = null, TypeUsageInfo[] typeArguments = null)
 {
     return(new TypeUsageInfo(name, typeNamespace, shortName, configuration, typeArguments));
 }