2 writes to _receiverType
Microsoft.Build (2)
Evaluation\Expander.cs (2)
3295_receiverType = receiverType; 3533_receiverType = objectInstance.GetType();
28 references to _receiverType
Microsoft.Build (28)
Evaluation\Expander.cs (28)
3454if (!IsStaticMethodAvailable(_receiverType, _methodMethodName)) 3456ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName); 3463if (_receiverType == typeof(Microsoft.Build.Evaluation.IntrinsicFunctions)) 3473ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName); 3505if (_receiverType == typeof(System.IO.File) || _receiverType == typeof(System.IO.Directory) 3506|| _receiverType == typeof(System.IO.Path)) 3541if (_receiverType == typeof(IntrinsicFunctions)) 3602IEnumerable<MethodInfo> methods = _receiverType.GetMethods(_bindingFlags).Where(m => m.Name.Equals(_methodMethodName) && m.GetParameters().Length == args.Length); 3608functionResult = _receiverType.InvokeMember(_methodMethodName, _bindingFlags, Type.DefaultBinder, objectInstance, args, CultureInfo.InvariantCulture); 3688if (_receiverType == typeof(IntrinsicFunctions)) 3738return _receiverType.InvokeMember(_methodMethodName, _bindingFlags, Type.DefaultBinder, objectInstance, args, CultureInfo.InvariantCulture) ?? "null"; 3964if (_receiverType == typeof(string)) 3991else if (_receiverType == typeof(Math)) 4010else if (_receiverType == typeof(IntrinsicFunctions)) 4403else if (_receiverType == typeof(Path)) 4508else if (_receiverType == typeof(Version)) 4519else if (_receiverType == typeof(Guid)) 4574if (_receiverType == typeof(string)) 5019File.AppendAllText(logFile, $"ReceiverType={_receiverType?.FullName}; ObjectInstanceType={objectInstance?.GetType().FullName}; MethodName={_methodMethodName}({argSignature})\n"); 5451string typeName = _receiverType.FullName; 5455if (_receiverType == typeof(Microsoft.Build.Evaluation.IntrinsicFunctions)) 5532memberInfo = _receiverType.GetConstructor(bindingFlags, null, types, null); 5536memberInfo = _receiverType.GetMethod(_methodMethodName, bindingFlags, null, types, null); 5547members = _receiverType.GetConstructors(bindingFlags); 5549else if (_receiverType == typeof(IntrinsicFunctions) && IntrinsicFunctionOverload.IsKnownOverloadMethodName(_methodMethodName)) 5551MemberInfo[] foundMembers = _receiverType.FindMembers( 5561members = _receiverType.GetMethods(bindingFlags).Where(m => string.Equals(m.Name, _methodMethodName, StringComparison.OrdinalIgnoreCase));