166 references to IsByRef
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (2)
661if (!parameter.ParameterType.IsByRef) 688return paramInfo.ParameterType.IsByRef;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1523if (parameterType.IsByRef)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
830if (member.MemberType.IsByRef)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
40if (parameters[i].ParameterType.IsByRef)
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
123else if (parameterType != null && parameterType.IsByRef) 131if (parameterType.IsByRef)
Microsoft.AspNetCore.Hosting (2)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
123else if (parameterType != null && parameterType.IsByRef) 131if (parameterType.IsByRef)
Microsoft.AspNetCore.Http.Abstractions (2)
Extensions\UseMiddlewareExtensions.cs (2)
207if (parameterType.IsByRef) 307if (parameterType.IsByRef)
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
701if (parameter.ParameterType.IsByRef)
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
645if (modelType.IsByRef)
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
123else if (parameterType != null && parameterType.IsByRef) 131if (parameterType.IsByRef)
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
123else if (parameterType != null && parameterType.IsByRef) 131if (parameterType.IsByRef)
Microsoft.AspNetCore.SignalR.Core (1)
Internal\TypedClientBuilder.cs (1)
299if (parameter.ParameterType.IsByRef)
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (2)
533return !(type == typeof(void) || type.IsByRef || type.GetTypeInfo().ContainsGenericParameters); 544return !(info.IsValueType || info.IsPointer || info.IsByRef || info.ContainsGenericParameters);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AssemblySymbol.cs (1)
752Debug.Assert(!typeInfo.IsByRef);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
414return Type.IsByRef;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (1)
142if (parameter.ParameterType.IsByRef)
Microsoft.CSharp (7)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
393Debug.Assert(type.IsByRef);
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (2)
212if ((t1.IsByRef && t2.IsByRef) ||
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (4)
734if (callingType.IsByRef) 832internal static CType GetCTypeFromType(Type type) => type.IsByRef 1464if ((parameter.Attributes & ParameterAttributes.Optional) != 0 && !parameter.ParameterType.IsByRef) 1499else if ((parameter.Attributes & ParameterAttributes.HasDefault) != 0 && !parameter.ParameterType.IsByRef)
Microsoft.Extensions.AI.Abstractions (3)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (3)
343if (underlyingType.IsByRef || underlyingType.IsPointer) 475else if (metaType.IsByRef) 628type.IsValueType || ((type.IsByRef || type.IsPointer) && type.GetElementType()!.IsValueType);
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
610if (p.IsOut || p.IsIn || p.ParameterType.IsByRef)
Microsoft.ML.Data (1)
DataView\InternalSchemaDefinition.cs (1)
114Contracts.Assert(parameterTypes[2].IsByRef);
Microsoft.VisualBasic.Core (36)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (2)
2517Debug.Assert(Not SourceType.IsByRef, "never expected to see byref source type") 2520If TargetType.IsByRef Then TargetType = TargetType.GetElementType
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (1)
1056If parameters(i).ParameterType.IsByRef Then
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (1)
3531If toType.IsByRef Then
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (14)
70If type1.IsByRef Then type1 = type1.GetElementType 71If type2.IsByRef Then type2 = type2.GetElementType 137If leftType.IsByRef Then leftType = GetElementType(leftType) 138If rightType.IsByRef Then rightType = GetElementType(rightType) 243If leftType.IsByRef Then 248If rightType.IsByRef Then 311If leftType.IsByRef Then 316If rightType.IsByRef Then 1116Debug.Assert(Not parameterType.IsByRef, "didn't expect byref parameter type here") 1245Dim isByRef As Boolean = parameterType.IsByRef 1313Dim isByRef As Boolean = parameterType.IsByRef 1350Dim isByRef As Boolean = parameterType.IsByRef 2023If parameters(paramIndex).ParameterType.IsByRef Then 2042If parameters(paramIndex).ParameterType.IsByRef Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (4)
558If referringType.IsByRef Then referringType = GetElementType(referringType) 596If referringType.IsByRef Then referringType = GetElementType(referringType) 686If returnType IsNot Nothing AndAlso (returnType.IsPointer OrElse returnType.IsByRef) Then 1433If parameter.ParameterType.IsByRef Then
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
509If parameterType.IsByRef Then
Microsoft\VisualBasic\CompilerServices\Utils.vb (2)
312If (t1.IsByRef AndAlso t2.IsByRef) OrElse
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (11)
591If ParmType.IsByRef Then 806If ParmType.IsByRef Then 1119If parms(ParmIndex).ParameterType.IsByRef Then 1337If Type0.IsByRef Then 1377If Type1.IsByRef Then 1492If paramType0.IsByRef Then 1501If paramType1.IsByRef Then 1533If paramType1.IsByRef Then 1537If paramType2.IsByRef Then 1759If (typ Is GetType(System.Object)) OrElse (typ.IsByRef AndAlso typ.GetElementType() Is GetType(System.Object)) Then 1817If ParamArrayIndex <> ARG_MISSING AndAlso ParmIndex >= ParamArrayIndex OrElse ParmType.IsByRef Then
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
260if (parameterInfos.Length == 0 || parameterInfos[0].ParameterType.IsByRef)
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ContractNameServices.cs (1)
159else if (type.IsByRef)
System.Formats.Nrbf (1)
System\Formats\Nrbf\SerializationRecord.cs (1)
72if (type.IsPointer || type.IsByRef)
System.Linq.Expressions (33)
System\Dynamic\Utils\DelegateHelpers.cs (4)
137if (returnType.IsByRefLike || returnType.IsByRef || returnType.IsPointer) 145if (parameterType.IsByRefLike || parameterType.IsByRef || parameterType.IsPointer) 276bool paramIsByReference = parameters[i].ParameterType.IsByRef; 317if (parameters[i].ParameterType.IsByRef)
System\Dynamic\Utils\ExpressionUtils.cs (1)
158if (pType.IsByRef)
System\Dynamic\Utils\TypeExtensions.cs (1)
88if (pi.ParameterType.IsByRef)
System\Dynamic\Utils\TypeUtils.cs (2)
912public static Type GetNonRefType(this Type type) => type.IsByRef ? type.GetElementType()! : type; 936if (!allowByRef && type.IsByRef)
System\Linq\Expressions\BinaryExpression.cs (1)
748if (pType.IsByRef)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (3)
100if (types.Length < 3 || types[0].IsByRef || types[1] != typeof(object) || types[types.Length - 1] != typeof(object)) 109if (!t.IsByRef || t.GetElementType() != typeof(object)) 153if (type.IsByRef || type.IsByRefLike || type.IsPointer)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
100if (node.Type.IsByRef && node.Type.GetElementType() == type)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
525if (type.IsByRef) 877if (type.IsByRef)
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (1)
311if (paramType.IsByRef)
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
337if (parameters[i].ParameterType.IsByRef)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
1072if (method != null && method.GetParametersCached().Any(p => p.ParameterType.IsByRef))
System\Linq\Expressions\ElementInit.cs (1)
120if (pi.ParameterType.IsByRef)
System\Linq\Expressions\IndexExpression.cs (3)
382if (indexer.PropertyType.IsByRef) 415if (valueType.IsByRef) 505if (pType.IsByRef) throw Error.AccessorsCannotHaveByRefArgs(nameof(indexes), i);
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
67if (pi.ParameterType.IsByRef)
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
1050if (parameterType.IsByRef) 2162if (parameters[i].ParameterType.IsByRef) 2399if (parameters[i].ParameterType.IsByRef)
System\Linq\Expressions\LambdaExpression.cs (2)
953if (!pType.IsByRef) 1006if (a.IsByRef)
System\Linq\Expressions\MethodCallExpression.cs (1)
1358if (pType.IsByRef)
System\Linq\Expressions\NewExpression.cs (1)
256if (pType.IsByRef)
System\Linq\Expressions\ParameterExpression.cs (1)
179bool byref = type.IsByRef;
System\Linq\Expressions\TypeBinaryExpression.cs (2)
195if (type.IsByRef) throw Error.TypeMustNotBeByRef(nameof(type)); 210if (type.IsByRef) throw Error.TypeMustNotBeByRef(nameof(type));
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
343if (parameterType.IsByRef)
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (6)
196if (pCls.IsByRef) 967if (c1.IsByRef || c2.IsByRef) 969if (c1.IsByRef && c2.IsByRef) 974else if (c1.IsByRef)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
258else if (type.IsByRef)
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (2)
187if (!parameterType.IsByRef) 276else if (returnType.IsByRef)
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
106if (t.IsByRef)
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
174protected override bool IsByRefImpl() => _unmodifiedType.IsByRef;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (3)
357if (underlyingType.IsByRef || underlyingType.IsPointer) 488else if (metaType.IsByRef) 646type.IsValueType || ((type.IsByRef || type.IsPointer) && type.GetElementType()!.IsValueType);
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs (2)
52if (!type.IsByRef) 83else if (ReturnType.IsByRef)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureTypeExtensions.cs (3)
42else if (pattern.IsByRef) 44return actual.IsByRef && pattern.ElementType!.MatchesExactly(actual.GetElementType()!); 121else if (signatureType.IsByRef)
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
146protected override bool IsByRefImpl() => typeImpl.IsByRef;
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
738if (type.IsPointer || type.IsFunctionPointer || type.IsByRef || type == typeof(void))
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
224/// Managed pointer types are sometimes called byref types (<seealso cref="Type.IsByRef"/>)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
216Debug.Assert(!type.IsByRef, "Must not be ByRef. Get token from TypeSpec."); 912|| type.IsByRef)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
191if (destType.IsByRef)
src\System\Reflection\Emit\SignatureHelper.cs (1)
391else if (clsArgument.IsByRef)
System.Private.Windows.Core (1)
System\TypeExtensions.cs (1)
65if (type is null || type.IsPointer || type.IsByRef)
System.Private.Xml (1)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
332if (clrType.IsByRef)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
428return _typeInfo.IsByRef;
System.Reflection.DispatchProxy (5)
System\Reflection\DispatchProxyGenerator.cs (5)
473bool isOutRef = parameters[i].IsOut && parameters[i].ParameterType.IsByRef && !parameters[i].IsIn; 532if (parameters[i].ParameterType.IsByRef) 623Debug.Assert(!target.IsByRef); 627if (source.IsByRef) 722Debug.Assert(_paramTypes[i].IsByRef);
System.Reflection.Emit (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
258else if (type.IsByRef)
System\Reflection\Emit\SignatureHelper.cs (3)
20WriteSignatureForType(encoder.AddVariable().Type(local.LocalType.IsByRef, local.IsPinned), 21local.LocalType.IsByRef ? local.LocalType.GetElementType()! : local.LocalType, module); 189else if (type.IsByRef)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
736argType.IsByRef != paramType.IsByRef ||
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeName.cs (1)
224/// Managed pointer types are sometimes called byref types (<seealso cref="Type.IsByRef"/>)
System.Reflection.MetadataLoadContext (16)
System\Reflection\DefaultBinder.cs (5)
456if (c1.IsByRef || c2.IsByRef) 458if (c1.IsByRef && c2.IsByRef) 463else if (c1.IsByRef)
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (2)
141if ((t1.IsArray && t2.IsArray) || (t1.IsByRef && t2.IsByRef) || (t1.IsPointer && t2.IsPointer))
System\Reflection\Runtime\SignatureTypeExtensions.cs (3)
45else if (pattern.IsByRef) 47return actual.IsByRef && pattern.GetElementType()!.MatchesExactly(actual.GetElementType()!); 123else if (signatureType.IsByRef)
System\Reflection\TypeLoading\General\Assignability.cs (6)
91if (fromTypeInfo.IsByRef) 93if (!toTypeInfo.IsByRef) 144if (toTypeInfo.IsArray || toTypeInfo.IsByRef || toTypeInfo.IsPointer || toTypeInfo.IsGenericParameter) 184Debug.Assert(!(fromTypeInfo.IsArray || fromTypeInfo.IsByRef || fromTypeInfo.IsPointer || fromTypeInfo.IsGenericParameter)); 185Debug.Assert(!(toTypeInfo.IsArray || toTypeInfo.IsByRef || toTypeInfo.IsPointer || toTypeInfo.IsGenericParameter)); 309if (t.IsByRef || t.IsPointer)
System.Xaml (1)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
377if (paramType.IsByRef)