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