mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Run Codeformatter for SMA (#9402)
This commit is contained in:
99 files changed
+370
-423
No files matched your search
@@ -2140,7 +2140,7 @@ namespace System.Management.Automation
|
||||
return ctor.Invoke(arguments);
|
||||
}
|
||||
|
||||
var methodInfo = (MethodInfo) method;
|
||||
var methodInfo = (MethodInfo)method;
|
||||
if (methodInfo.ReturnType.IsByRefLike)
|
||||
{
|
||||
throw new MethodException(
|
||||
@@ -3575,12 +3575,11 @@ namespace System.Management.Automation
|
||||
: typeTable[propertyName];
|
||||
switch (entry)
|
||||
{
|
||||
case null: return null;
|
||||
case null:
|
||||
return null;
|
||||
case PropertyCacheEntry cacheEntry when lookingForProperties:
|
||||
{
|
||||
var isHidden = cacheEntry.member.GetCustomAttributes(typeof(HiddenAttribute), false).Any();
|
||||
return new PSProperty(cacheEntry.member.Name, this, obj, cacheEntry) { IsHidden = isHidden } as T;
|
||||
}
|
||||
case ParameterizedPropertyCacheEntry paramCacheEntry when lookingForParameterizedProperties:
|
||||
|
||||
// TODO: check for HiddenAttribute
|
||||
|
||||
Reference in new issue
Block a user