12 references to DefaultConstructorConstraint
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
889result |= GenericParameterAttributes.DefaultConstructorConstraint;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
96_flags = ((flags & GenericParameterAttributes.NotNullableValueTypeConstraint) == 0) ? flags : (flags & ~GenericParameterAttributes.DefaultConstructorConstraint); 451return (_flags & GenericParameterAttributes.DefaultConstructorConstraint) != 0;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\GenericConstraintTests.cs (2)
6632Assert.Equal(GenericParameterAttributes.DefaultConstructorConstraint, flags & GenericParameterAttributes.DefaultConstructorConstraint);
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
50if (typeInfo.GenericParameterAttributes.HasFlag(GenericParameterAttributes.DefaultConstructorConstraint))
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (2)
94_flags = If((flags And GenericParameterAttributes.NotNullableValueTypeConstraint) = 0, flags, flags And Not GenericParameterAttributes.DefaultConstructorConstraint) 287Return (_flags And GenericParameterAttributes.DefaultConstructorConstraint) <> 0
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
566if ((t.GenericParameterAttributes & GenericParameterAttributes.DefaultConstructorConstraint) != 0)
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (2)
120bool serviceHasNewConstraint = serviceGenericType.GenericParameterAttributes.HasFlag(GenericParameterAttributes.DefaultConstructorConstraint); 121bool implementationHasNewConstraint = implementationGenericType.GenericParameterAttributes.HasFlag(GenericParameterAttributes.DefaultConstructorConstraint);
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
178if ((attributes & GenericParameterAttributes.DefaultConstructorConstraint) != 0)