2 writes to _receiverType
Microsoft.Build (2)
Evaluation\Expander.Function.cs (2)
153
_receiverType
= receiverType;
477
_receiverType
= objectInstance.GetType();
24 references to _receiverType
Microsoft.Build (24)
Evaluation\Expander.Function.cs (24)
382
if (!IsStaticMethodAvailable(
_receiverType
, _methodMethodName))
384
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName,
_receiverType
.FullName);
392
if (!IsInstanceMethodAvailable(
_receiverType
, _methodMethodName))
394
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName,
_receiverType
.FullName);
408
bool isFileSystemInfoConstructor = objectInstance is null && IsFileSystemInfoConstructor(
_receiverType
, _methodMethodName);
431
if (
_receiverType
== typeof(System.IO.File) ||
_receiverType
== typeof(System.IO.Directory)
432
||
_receiverType
== typeof(System.IO.Path) || isFileSystemInfoConstructor)
446
if ((
_receiverType
== typeof(System.IO.File) ||
_receiverType
== typeof(System.IO.Directory)
485
if (
_receiverType
== typeof(IntrinsicFunctions))
503
if (!WellKnownFunctions.TryExecuteWellKnownConstructorNoThrow(
_receiverType
, out functionResult, args))
516
wellKnownFunctionSuccess = WellKnownFunctions.TryExecuteWellKnownFunction(_methodMethodName,
_receiverType
, _fileSystem, out functionResult, objectInstance, args);
521
wellKnownFunctionSuccess = WellKnownFunctions.TryExecuteWellKnownFunctionWithPropertiesParam(_methodMethodName,
_receiverType
, _loggingContext, properties, out functionResult, objectInstance, args);
546
IEnumerable<MethodInfo> methods =
_receiverType
.GetMethods(_bindingFlags).Where(m => m.Name.Equals(_methodMethodName) && m.GetParameters().Length == args.Length);
552
functionResult =
_receiverType
.InvokePublicMember(_methodMethodName, _bindingFlags, objectInstance, args);
661
return
_receiverType
.InvokePublicMember(_methodMethodName, _bindingFlags, objectInstance, args) ?? "null";
1102
string typeName =
_receiverType
.FullName;
1106
if (
_receiverType
== typeof(IntrinsicFunctions))
1205
foreach (MethodInfo method in
_receiverType
.GetMethods(_bindingFlags))
1268
memberInfo =
_receiverType
.GetConstructor(types);
1286
members =
_receiverType
.GetConstructors();
1288
else if (
_receiverType
== typeof(IntrinsicFunctions) && IntrinsicFunctionOverload.IsKnownOverloadMethodName(_methodMethodName))
1303
members =
_receiverType
.GetMethods(_bindingFlags).Where(m => string.Equals(m.Name, _methodMethodName, StringComparison.OrdinalIgnoreCase));