7 implementations of IsUnmanagedType
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
120public bool IsUnmanagedType => throw new NotImplementedException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
76bool ITypeSymbol.IsUnmanagedType => throw new System.NotImplementedException();
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
117bool ITypeSymbol.IsUnmanagedType => !UnderlyingTypeSymbol.IsManagedTypeNoUseSiteDiagnostics;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
139public bool IsUnmanagedType => throw new NotImplementedException();
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
594Private ReadOnly Property ITypeSymbol_IsUnmanagedType As Boolean Implements ITypeSymbol.IsUnmanagedType
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
120public bool IsUnmanagedType => throw new NotImplementedException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
76bool ITypeSymbol.IsUnmanagedType => throw new System.NotImplementedException();
35 references to IsUnmanagedType
ILLink.RoslynAnalyzer (1)
COMAnalyzer.cs (1)
64 typedConstant.Type != null && typedConstant.Type.IsUnmanagedType) {
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\UnsafeTests.cs (21)
6309Assert.True(getLocalType("s1").IsUnmanagedType); 6310Assert.True(getLocalType("s2").IsUnmanagedType); 6311Assert.False(getLocalType("s3").IsUnmanagedType); 6312Assert.True(getLocalType("s4_0").IsUnmanagedType); 6313Assert.False(getLocalType("s4_1").IsUnmanagedType); 6314Assert.True(getLocalType("s4_2").IsUnmanagedType); 6315Assert.True(getLocalType("s5").IsUnmanagedType); 6316Assert.True(getLocalType("i0").IsUnmanagedType); 6317Assert.True(getLocalType("e1").IsUnmanagedType); 6318Assert.False(getLocalType("o1").IsUnmanagedType); 6319Assert.False(getLocalType("c1").IsUnmanagedType); 6320Assert.False(getLocalType("t1").IsUnmanagedType); 6321Assert.True(getLocalType("u1").IsUnmanagedType); 6322Assert.True(getLocalType("p1").IsUnmanagedType); 6323Assert.False(getLocalType("a1").IsUnmanagedType); 6324Assert.False(getLocalType("a2").IsUnmanagedType); 6325Assert.True(getLocalType("t2").IsUnmanagedType); 6381Assert.True(getLocalType("good").IsUnmanagedType); 6382Assert.True(getLocalType("good2").IsUnmanagedType); 6383Assert.False(getLocalType("bad").IsUnmanagedType); 6384Assert.False(getLocalType("bad2").IsUnmanagedType);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
594Private ReadOnly Property ITypeSymbol_IsUnmanagedType As Boolean Implements ITypeSymbol.IsUnmanagedType
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\SemanticModelAPITests.vb (5)
2951Assert.True(getLocalType("s1").IsUnmanagedType) 2952Assert.True(getLocalType("s2").IsUnmanagedType) 2953Assert.False(getLocalType("s3").IsUnmanagedType) 2954Assert.True(getLocalType("s4").IsUnmanagedType) 2955Assert.True(getLocalType("e1").IsUnmanagedType)
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (3)
887if (!unmanagedType.IsUnmanagedType && !unmanagedType.IsStrictlyBlittableInContext(_compilation)) 1203if (!unmanagedType.IsUnmanagedType && !unmanagedType.IsStrictlyBlittableInContext(_compilation)) 1222if (!unmanagedType.IsUnmanagedType && !unmanagedType.IsStrictlyBlittableInContext(_compilation))
Microsoft.Interop.SourceGeneration (4)
BlittableTypeMarshallingInfoProvider.cs (1)
23public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type is INamedTypeSymbol { IsUnmanagedType: true } unmanagedType
MarshallerShape.cs (2)
232if (typeArgument.IsUnmanagedType) 473if (unmanagedType.IsUnmanagedType)
TypeSymbolExtensions.cs (1)
39return t.IsUnmanagedType;