Example #1
0
 public GenericParameterInfo(int position,
                             GenericParameterVariance variance,
                             GenericParameterSpecialConstraints specialConstraints)
 {
     Position           = position;
     Variance           = variance;
     SpecialConstraints = specialConstraints;
 }
Example #2
0
 public GenericParameter(string declarerFullName, string name, GenericParameterVariance variance,
                         IEnumerable <ITypeInstance <IType> > typeConstraints, bool hasReferenceTypeConstraint,
                         bool hasNotNullableValueTypeConstraint, bool hasDefaultConstructorConstraint, bool isCompilerGenerated,
                         bool declarerIsMethod)
 {
     _declarerFullName = declarerFullName;
     Name     = name;
     Variance = variance;
     TypeInstanceConstraints           = typeConstraints;
     HasReferenceTypeConstraint        = hasReferenceTypeConstraint;
     HasNotNullableValueTypeConstraint = hasNotNullableValueTypeConstraint;
     HasDefaultConstructorConstraint   = hasDefaultConstructorConstraint;
     IsCompilerGenerated = isCompilerGenerated;
     DeclarerIsMethod    = declarerIsMethod;
 }