Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/System.Management.Automation/engine/CoreAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2472,8 +2472,8 @@ internal PropertyCacheEntry(PropertyInfo property)
if (declaringTypeInfo.IsValueType ||
propertyTypeInfo.IsGenericType ||
declaringTypeInfo.IsGenericType ||
property.DeclaringType.IsComObject() ||
property.PropertyType.IsComObject())
property.DeclaringType.IsCOMObject ||
property.PropertyType.IsCOMObject)
{
this.readOnly = property.GetSetMethod() == null;
this.writeOnly = property.GetGetMethod() == null;
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/MshObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ internal static AdapterSet GetMappedAdapter(object obj, TypeTable typeTable)

if (result == null)
{
if (objectType.IsComObject())
if (objectType.IsCOMObject)
{
// All WinRT types are COM types.
// All WinRT types would contain the TypeAttributes flag being set to WindowsRunTime.
Expand Down
10 changes: 0 additions & 10 deletions src/System.Management.Automation/utils/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,6 @@ internal static bool IsInteger(this Type type)
return LanguagePrimitives.IsInteger(LanguagePrimitives.GetTypeCode(type));
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static bool IsComObject(this Type type)
{
#if UNIX
return false;
#else
return type.IsCOMObject;
#endif
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static TypeCode GetTypeCode(this Type type)
{
Expand Down