318 references to System_Byte
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
235if (type is IArrayTypeSymbol { ElementType.SpecialType: SpecialType.System_Byte }) 276case SpecialType.System_Byte:
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
446 case SpecialType.System_Byte when constantValue is byte byteConstantValue:
Microsoft.Analyzers.Extra (1)
CallAnalysis\Arrays.cs (1)
109|| keyType.SpecialType == SpecialType.System_Byte
Microsoft.Analyzers.Local (1)
CallAnalysis\ToInvariantString.cs (1)
18SpecialType.System_Byte,
Microsoft.CodeAnalysis (44)
Compilation\Expression.cs (1)
27case SpecialType.System_Byte:
ConstantValue.cs (2)
441case SpecialType.System_Byte: return ConstantValueTypeDiscriminator.Byte; 493case ConstantValueTypeDiscriminator.Byte: return SpecialType.System_Byte;
Emit\CommonPEModuleBuilder.cs (1)
1087this.GetSpecialType(SpecialType.System_Byte, syntaxNodeOpt, diagnostics),
MetadataReader\MetadataTypeCodeExtensions.cs (3)
31return SpecialType.System_Byte; 110case SpecialType.System_Byte: 151case SpecialType.System_Byte:
SpecialMembers.cs (3)
368(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 570(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 641(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte,
SpecialTypeExtensions.cs (11)
22case SpecialType.System_Byte: 47case SpecialType.System_Byte: 70case SpecialType.System_Byte: 103case SpecialType.System_Byte: 145case SpecialType.System_Byte: 168case SpecialType.System_Byte: 186case SpecialType.System_Byte: 210case SpecialType.System_Byte: 228case SpecialType.System_Byte: 348return SpecialType.System_Byte; 385SpecialType.System_Byte => (byte)value,
SpecialTypes.cs (2)
117s_typeIdToTypeCodeMap[(int)SpecialType.System_Byte] = Microsoft.Cci.PrimitiveTypeCode.UInt8; 141s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt8] = SpecialType.System_Byte;
Symbols\Attributes\CommonAttributeData.cs (4)
208Debug.Assert(parameters[0].Type.SpecialType == SpecialType.System_Byte); 209Debug.Assert(parameters[1].Type.SpecialType == SpecialType.System_Byte); 213byte scale = args[0].DecodeValue<byte>(SpecialType.System_Byte); 214bool isNegative = args[1].DecodeValue<byte>(SpecialType.System_Byte) != 0;
Symbols\INamedTypeSymbolInternal.cs (1)
49case SpecialType.System_Byte:
Symbols\TypedConstant.cs (1)
169case SpecialType.System_Byte:
WellKnownMembers.cs (15)
122(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Return Type 130(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Return Type 138(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Return Type 875(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 876(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 887(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 888(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 1362(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Return Type 1483(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 1578(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Return Type 3020(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Value 3138(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, // Value 3256(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 3264(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte, 3272(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Byte,
Microsoft.CodeAnalysis.CodeStyle (18)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (11)
22case SpecialType.System_Byte: 47case SpecialType.System_Byte: 70case SpecialType.System_Byte: 103case SpecialType.System_Byte: 145case SpecialType.System_Byte: 168case SpecialType.System_Byte: 186case SpecialType.System_Byte: 210case SpecialType.System_Byte: 228case SpecialType.System_Byte: 348return SpecialType.System_Byte; 385SpecialType.System_Byte => (byte)value,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
290case SpecialType.System_Byte: 382case SpecialType.System_Byte: 659case SpecialType.System_Byte:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
19PredefinedType.Byte => SpecialType.System_Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
19SpecialType.System_Byte => PredefinedType.Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
61SpecialType.System_Byte => (byte)1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
64SpecialType.System_Byte => unchecked((byte)v),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
384case SpecialType.System_Byte:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
137SpecialType.System_Byte => value is byte,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
419case SpecialType.System_Byte:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
460case SpecialType.System_Byte:
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Expressions.cs (3)
7266case SpecialType.System_Byte: 7320specialType != SpecialType.System_Byte && 7350var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).Construct(GetSpecialType(SpecialType.System_Byte, diagnostics, node));
Binder\Binder_Operators.cs (2)
883namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Single().Type.SpecialType is SpecialType.System_Byte; 1689case SpecialType.System_Byte:
Binder\Binder_Patterns.cs (1)
1701SpecialType.System_Byte => BinaryOperatorKind.Int, // operands are converted to int
Binder\DecisionDagBuilder.cs (2)
1564case (SpecialType.System_SByte, SpecialType.System_Byte): 1565case (SpecialType.System_Byte, SpecialType.System_SByte):
Binder\PatternExplainer.cs (1)
722case SpecialType.System_Byte:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1371case SpecialType.System_Byte: 2105case SpecialType.System_Byte: 2189case SpecialType.System_Byte: 3927case SpecialType.System_Byte:
Binder\Semantics\Operators\OperatorFacts.cs (1)
36case SpecialType.System_Byte:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3741case SpecialType.System_Byte:
CodeGen\EmitArrayInitializer.cs (1)
796SpecialType.System_SByte or SpecialType.System_Byte or SpecialType.System_Boolean or
CodeGen\EmitExpression.cs (1)
1336case SpecialType.System_Byte:
CodeGen\EmitOperators.cs (2)
681case SpecialType.System_Byte: 767case SpecialType.System_Byte:
Compilation\BuiltInOperators.cs (2)
265case UnaryOperatorKind.Byte: opType = _compilation.GetSpecialType(SpecialType.System_Byte); break; 693Debug.Assert(((NamedTypeSymbol)readonlySpanOfByte).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Single().Type.SpecialType is SpecialType.System_Byte);
Compilation\CSharpCompilation.cs (2)
1718case SpecialType.System_Byte: 4422=> IsReadOnlySpanType(type) && ((NamedTypeSymbol)type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].SpecialType == SpecialType.System_Byte;
Emitter\Model\PEAssemblyBuilder.cs (2)
506GetSpecialType(SpecialType.System_Byte, diagnostics)); 514GetSpecialType(SpecialType.System_Byte, diagnostics));
Emitter\Model\PEModuleBuilder.cs (3)
1578NamedTypeSymbol byteType = Compilation.GetSpecialType(SpecialType.System_Byte); 1599NamedTypeSymbol byteType = Compilation.GetSpecialType(SpecialType.System_Byte); 1622ImmutableArray.Create(new TypedConstant(Compilation.GetSpecialType(SpecialType.System_Byte), TypedConstantKind.Primitive, value)));
FlowAnalysis\AbstractFlowPass.cs (1)
1463case SpecialType.System_Byte:
FlowAnalysis\DefiniteAssignment.cs (1)
906type is not ArrayTypeSymbol { IsSZArray: true, ElementType.SpecialType: SpecialType.System_Byte })
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
217SpecialType.System_SByte or SpecialType.System_Byte
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
417SpecialType.System_Byte => true,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
97Debug.Assert(byteType.SpecialType == SpecialType.System_Byte); 145Debug.Assert(byteArray.ElementType.SpecialType == SpecialType.System_Byte); 1555case SpecialType.System_Byte: 1580case SpecialType.System_Byte: 1605case SpecialType.System_Byte: 1633case SpecialType.System_Byte: 1660case SpecialType.System_Byte: return SpecialMember.System_Decimal__op_Explicit_ToByte; 1680case SpecialType.System_Byte: return SpecialMember.System_Decimal__op_Implicit_FromByte;
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
128arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(scale), _compilation.GetSpecialType(SpecialType.System_Byte)));
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
923specialType = SpecialType.System_Byte; 1038case SpecialType.System_Byte:
Lowering\SyntheticBoundNodeFactory.cs (1)
710return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Byte)) { WasCompilerGenerated = true };
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
653case SpecialType.System_Byte:
Symbols\Attributes\SourceAttributeData.cs (1)
350if (specType != SpecialType.System_Byte)
Symbols\Compilation_WellKnownMembers.cs (1)
462var systemByte = GetSpecialType(SpecialType.System_Byte);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1917case SpecialType.System_Byte:
Symbols\Source\SourceAssemblySymbol.cs (1)
2788case SpecialType.System_Byte:
Symbols\SpecialTypeExtensions.cs (2)
21case SpecialType.System_Byte: 39case SpecialType.System_Byte:
Symbols\TypeSymbolExtensions.cs (5)
647case SpecialType.System_Byte: 1346case SpecialType.System_Byte: 1457case SpecialType.System_Byte: 2221case SpecialType.System_Byte: return 8; 2244case SpecialType.System_Byte: return 23;
Syntax\SyntaxKindExtensions.cs (1)
20return SpecialType.System_Byte;
Utilities\ValueSetFactory.cs (1)
36SpecialType.System_Byte => ForByte,
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
78if (arrayCreationOperation.Type is not IArrayTypeSymbol { ElementType.SpecialType: SpecialType.System_Byte })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
25case SpecialType.System_Byte:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
67namedType.TypeArguments[0].SpecialType == SpecialType.System_Byte;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
464Assert.Same(module.GetCorLibType(SpecialType.System_Byte), method4ParamTypes[8]);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
12485CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Byte)));
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (1)
55protected override SpecialType SpecialType => SpecialType.System_Byte;
Completion\Providers\DefaultArgumentProvider.cs (1)
41SpecialType.System_Byte => "(byte)0",
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
97SpecialType.System_Byte => IsUnsignedBoundary(startValue, endValue, byte.MaxValue),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
78if (arrayCreationOperation.Type is not IArrayTypeSymbol { ElementType.SpecialType: SpecialType.System_Byte })
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
67namedType.TypeArguments[0].SpecialType == SpecialType.System_Byte;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
EditAndContinue\TopLevelEditingTests.cs (8)
6010SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("S.C")) 7211semanticEdits: [SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IMethodSymbol>("C.F").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Byte }]))]), 7236SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Byte }])), 7237SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Byte }]).GetMethod), 7238SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Byte }]).SetMethod), 7431SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol) 20680SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("S.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Byte }]).SetMethod), 20710SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("S.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Byte }]).SetMethod),
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
32case SpecialType.System_Byte: return "byte";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\OperatorTests.cs (3)
7499type = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Byte)); 7868types[types.Length - 2] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Byte)); 8028types[types.Length - 2] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Byte));
Semantics\UnsafeTests.cs (1)
10582{ SpecialType.System_Byte, 1 },
Semantics\Utf8StringsLiteralsTests.cs (1)
1917comp.MakeTypeMissing(SpecialType.System_Byte);
Utilities\ValueSetTests.cs (1)
492Assert.Same(ForByte, ForSpecialType(SpecialType.System_Byte));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\ConversionTests.cs (2)
1805Assert.Equal(SpecialType.System_Byte, method.Parameters.Single().Type.SpecialType); 1839Assert.Equal(SpecialType.System_Byte, method.Parameters.Single().Type.SpecialType);
Symbols\Source\EnumTests.cs (1)
81VerifyEnumsValue(comp, "Suits", SpecialType.System_Byte, null, (byte)2, null);
Symbols\Source\TypeMapTests.cs (2)
138var _byte = compilation.GetSpecialType(SpecialType.System_Byte); 180var _byte = compilation.GetSpecialType(SpecialType.System_Byte);
Symbols\TypeTests.cs (1)
1521Assert.Same(comp.GetSpecialType(SpecialType.System_Byte), underType);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3262case SpecialType.System_Byte: 3448SpecialType.System_Byte => ByteKeyword,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (12)
22SpecialType.System_Byte, 38SpecialType.System_Byte, 49SpecialType.System_Byte, 57private static readonly ImmutableArray<SpecialType> s_uint16Conversions = [SpecialType.System_Byte, SpecialType.System_Char, SpecialType.System_SByte, SpecialType.System_Int16]; 61SpecialType.System_Byte, 72SpecialType.System_Byte, 82SpecialType.System_Byte, 94SpecialType.System_Byte, 104private static readonly ImmutableArray<SpecialType> s_charConversions = [SpecialType.System_Byte, SpecialType.System_SByte, SpecialType.System_Int16]; 108SpecialType.System_Byte, 122SpecialType.System_Byte, 214SpecialType.System_Byte => s_byteConversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
42SpecialType.System_Byte => SyntaxKind.ByteKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
25case SpecialType.System_Byte:
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
290VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Byte), "byte"); 998m.Name == WellKnownMemberNames.ImplicitConversionName && m.Parameters[0].Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte)));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
90(SpecialType.System_Byte, short shortVal) when unchecked((byte)shortVal) == shortVal => ConstantValue.Create((byte)shortVal),
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
384case SpecialType.System_Byte:
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
82case SpecialType.System_Byte:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
312return SpecialType.System_Byte;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
57Assert.Equal(SpecialType.System_Byte, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UInt8));
Microsoft.CodeAnalysis.VisualBasic (53)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
338SpecialType.System_Byte,
Binding\Binder_Conversions.vb (1)
280Case SyntaxKind.CByteKeyword : targetType = SpecialType.System_Byte
Binding\Binder_Expressions.vb (1)
4465specialType <> specialType.System_Byte AndAlso
Binding\Binder_SelectCase.vb (1)
695SpecialType.System_Byte,
Binding\Binder_Symbols.vb (1)
780type = SpecialType.System_Byte
Binding\Binder_Utils.vb (1)
1375SpecialType.System_Byte,
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
366type = SpecialType.System_Byte
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
483SpecialType.System_Byte,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
432Dim needToCastBackToByteOrSByte As Boolean = resultUnderlyingSpecialType = SpecialType.System_Byte OrElse 458Debug.Assert(resultUnderlyingSpecialType = SpecialType.System_Byte OrElse resultUnderlyingSpecialType = SpecialType.System_SByte)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (5)
311Case SpecialType.System_Byte 456Case SpecialType.System_Byte : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 470Case SpecialType.System_Byte 545Case SpecialType.System_Byte : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 586Case SpecialType.System_Byte : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringByte
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
86Dim needToCastBackToByteOrSByte As Boolean = origArgUnderlyingSpecialType = SpecialType.System_Byte OrElse
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (5)
841Case SpecialType.System_Byte : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToByteObject 934Case SpecialType.System_Byte : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringByte 1006Case SpecialType.System_Byte : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToByteString 1074SpecialType.System_Byte, 1146Case SpecialType.System_Byte : member = WellKnownMember.System_Convert__ToByteDecimal
Preprocessor\CConst.vb (2)
43Case SpecialType.System_Byte 85Return New CConst(Of Byte)(value, SpecialType.System_Byte)
Preprocessor\ExpressionEvaluator.vb (6)
25Const _____Byte = CType(SpecialType.System_Byte, Byte) 75Case SpecialType.System_Byte 384Return SpecialType.System_Byte 499specialType = SpecialType.System_Byte 871Case SpecialType.System_Byte 910Case SpecialType.System_Byte
Preprocessor\OperatorResolution.vb (2)
36Case SpecialType.System_Byte 88Const t_ui1 As Byte = CType(SpecialType.System_Byte, Byte)
Semantics\Conversions.vb (1)
3340Case SpecialType.System_Byte, SpecialType.System_SByte, SpecialType.System_Boolean
Semantics\Operators.vb (4)
591SpecialType.System_Byte, 624SpecialType.System_Byte, 653SpecialType.System_Byte 1731Const tByt As SByte = SpecialType.System_Byte
Semantics\OverloadResolution.vb (2)
2097If leftSpecialType = SpecialType.System_Byte AndAlso rightSpecialType = SpecialType.System_SByte Then 2101If leftSpecialType = SpecialType.System_SByte AndAlso rightSpecialType = SpecialType.System_Byte Then
Symbols\Attributes\SourceAttributeData.vb (1)
209foundMatch = specType = SpecialType.System_Byte
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1144SpecialType.System_Byte,
Symbols\SpecialTypeExtensions.vb (10)
29SpecialType.System_Byte, 52SpecialType.System_Byte, 99SpecialType.System_Byte, 121Case SpecialType.System_Byte, 159Case SpecialType.System_Byte 194Case SpecialType.System_Byte 245Case SpecialType.System_Byte 281Case SpecialType.System_Byte 317Case SpecialType.System_SByte, SpecialType.System_Byte 345Case SpecialType.System_Byte
Symbols\TypeSymbolExtensions.vb (1)
432Case SpecialType.System_Byte
Symbols\WellKnownMembers.vb (1)
236Dim specialTypeByte = GetSpecialType(SpecialType.System_Byte)
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
182Case SpecialType.System_Byte
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
79Return GenerateNonNegativeIntegralLiteralExpression(type, SpecialType.System_Byte, DirectCast(value, Byte), canUseFieldReference, LiteralSpecialValues.ByteSpecialValues) 216If TypeOf value Is Byte AndAlso Not IsSpecialType(type, SpecialType.System_Byte) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
23Case specialType.System_Byte 65specialType = specialType.System_Byte 105SpecialType.System_Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
98SpecialType.System_Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
104Case SpecialType.System_Byte
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
527Assert.Same([Module].GetCorLibType(SpecialType.System_Byte), method4ParamTypes(8))
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Rewriters\LocalDeclarationRewriter.vb (1)
64compilation.GetSpecialType(SpecialType.System_Byte),
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
87SpecialType.System_Byte,
Completion\Providers\DefaultArgumentProvider.vb (1)
30Case SpecialType.System_Byte
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (5)
EditAndContinue\TopLevelEditingTests.vb (5)
3248SemanticEdit(SemanticEditKind.Delete, Function(c) c.GetMembers("S.C.F2").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Byte)), deletedSymbolContainerProvider:=Function(c) c.GetMember("S.C")) 4357semanticEdits:={SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMembers("C.F").Single(Function(m) m.GetParameters()(0).Type.SpecialType = SpecialType.System_Byte))}) 4399SemanticEdit(SemanticEditKind.Update, Function(c) DirectCast(c.GetMembers("C.P").Single(Function(m) m.GetParameters()(0).Type.SpecialType = SpecialType.System_Byte), PropertySymbol).GetMethod), 4400SemanticEdit(SemanticEditKind.Update, Function(c) DirectCast(c.GetMembers("C.P").Single(Function(m) m.GetParameters()(0).Type.SpecialType = SpecialType.System_Byte), PropertySymbol).SetMethod) 4657SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Byte)))
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
22Case SpecialType.System_Byte
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (12)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2820Assert.Equal(compilation.GetSpecialType(System_Byte), local.Type)
Semantics\Conversions.vb (10)
233Dim byteType = c1.GetSpecialType(System_Byte) 1085Dim byteType = c1.GetSpecialType(System_Byte) 1349Case System_Byte : Return c.ToByte(Nothing) 1374Case System_Byte : Return UncheckedCByte(UncheckedCLng(val)) 1390Case System_Byte : Return UncheckedCByte(val) 1406Case System_Byte : Return UncheckedCByte(UncheckedCLng(val)) 1423Case System_Byte : Return CByte(value) 2045c1.GetSpecialType(System_Byte), 2061nullable.Construct(c1.GetSpecialType(System_Byte)), 2185Private Const s_byte = System_Byte
Semantics\OverloadResolution.vb (1)
2509Dim numericTypesPrecedence = {System_SByte, System_Byte, System_Int16, System_UInt16,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (5)
SymbolsTests\InstantiatingGenerics.vb (1)
690Dim bte = compilation.GetSpecialType(SpecialType.System_Byte)
SymbolsTests\Source\EnumTests.vb (2)
110Dim fields = VerifyEnumsValue(text, "Suits", SpecialType.System_Byte, Nothing, CByte(2), Nothing) 137fields = VerifyEnumsValue(text, "Suits", SpecialType.System_Byte, Nothing, CByte(2), Nothing)
SymbolsTests\Source\MethodTests.vb (1)
786Dim constructedM1_2 = m1.Construct(compilation.GetSpecialType(SpecialType.System_Byte), compilation.GetSpecialType(SpecialType.System_Boolean))
SymbolsTests\TypedConstantTests.vb (1)
28_namedType = _compilation.GetSpecialType(SpecialType.System_Byte)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
13Assert.Equal(ConstantValueTypeDiscriminator.Byte, SpecialType.System_Byte.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
395Case SpecialType.System_Byte
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
25Case SpecialType.System_Byte
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
79Return GenerateNonNegativeIntegralLiteralExpression(type, SpecialType.System_Byte, DirectCast(value, Byte), canUseFieldReference, LiteralSpecialValues.ByteSpecialValues) 216If TypeOf value Is Byte AndAlso Not IsSpecialType(type, SpecialType.System_Byte) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
23Case specialType.System_Byte 65specialType = specialType.System_Byte 105SpecialType.System_Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
98SpecialType.System_Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
104Case SpecialType.System_Byte
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.vb (2)
266VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Byte), "Byte") 1076Function(m) m.Name = WellKnownMemberNames.ImplicitConversionName AndAlso m.Parameters(0).Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte)))
Microsoft.CodeAnalysis.Workspaces (22)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
306AddSpecialTypeSymbolAndItsAliases(nameof(Byte), SpecialType.System_Byte);
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (11)
22case SpecialType.System_Byte: 47case SpecialType.System_Byte: 70case SpecialType.System_Byte: 103case SpecialType.System_Byte: 145case SpecialType.System_Byte: 168case SpecialType.System_Byte: 186case SpecialType.System_Byte: 210case SpecialType.System_Byte: 228case SpecialType.System_Byte: 348return SpecialType.System_Byte; 385SpecialType.System_Byte => (byte)value,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
290case SpecialType.System_Byte: 382case SpecialType.System_Byte: 659case SpecialType.System_Byte:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
19PredefinedType.Byte => SpecialType.System_Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
19SpecialType.System_Byte => PredefinedType.Byte,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
61SpecialType.System_Byte => (byte)1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
64SpecialType.System_Byte => unchecked((byte)v),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
137SpecialType.System_Byte => value is byte,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
419case SpecialType.System_Byte:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
460case SpecialType.System_Byte:
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
50SpecialType.System_Byte => true,
Microsoft.Gen.Metrics (1)
Parser.cs (1)
36SpecialType.System_Byte,
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
36SpecialType.System_Byte,
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
29case { SpecialType: SpecialType.System_Byte }:
Microsoft.Interop.SourceGeneration (4)
ManagedTypeInfo.cs (1)
82public static readonly SpecialTypeInfo Byte = new("byte", "byte", SpecialType.System_Byte);
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
42or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Byte }, MarshallingAttributeInfo: NoMarshallingInfo or MarshalAsInfo(UnmanagedType.U1, _) }
TypeSymbolExtensions.cs (2)
178or SpecialType.System_Byte 193or SpecialType.System_Byte
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
721case SpecialType.System_Byte:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
779Case SpecialType.System_Byte
System.Text.Json.SourceGeneration (4)
Helpers\KnownTypeSymbols.cs (3)
153: (_ByteArrayType = new(Compilation.CreateArrayTypeSymbol(Compilation.GetSpecialType(SpecialType.System_Byte), rank: 1))).Value; 159: (_MemoryByteType = new(MemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 165: (_ReadOnlyMemoryByteType = new(ReadOnlyMemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value;
Helpers\RoslynExtensions.cs (1)
194SpecialType.System_Byte or SpecialType.System_UInt16 or SpecialType.System_UInt32 or SpecialType.System_UInt64 or