Exemple #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];
 }
Exemple #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];
 }
Exemple #3
0
 public static TypeUsageInfo CreateTypeArgument(string name, TypeArgumentConfiguration configuration)
 {
     return new TypeUsageInfo(name, null, null, TypeUsageInfoConfiguration.TypeArgument, null, configuration);
 }
Exemple #4
0
 public static TypeUsageInfo CreateTypeArgument(string name, TypeArgumentConfiguration configuration)
 {
     return(new TypeUsageInfo(name, null, null, TypeUsageInfoConfiguration.TypeArgument, null, configuration));
 }