Run Codeformatter for SMA (#9402)

This commit is contained in:
Ilya authored and GitHub committed 2019-04-24 19:27:22 +05:00
1 parent 095be4655e
commit ceed73d737
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