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
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ internal PropVariant(string value)
throw new ArgumentException("PropVariantNullString", nameof(value));
}

#pragma warning disable CS0618 // Type or member is obsolete (might get deprecated in future versions
_valueType = (ushort)VarEnum.VT_LPWSTR;
#pragma warning restore CS0618 // Type or member is obsolete (might get deprecated in future versions
_ptr = Marshal.StringToCoTaskMemUni(value);
}

Expand Down
3 changes: 0 additions & 3 deletions src/System.Management.Automation/engine/COM/ComInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

using COM = System.Runtime.InteropServices.ComTypes;

// Disable obsolete warnings about VarEnum and COM-marshaling APIs in CoreCLR
#pragma warning disable 618

namespace System.Management.Automation
{
internal static class ComInvoker
Expand Down
5 changes: 0 additions & 5 deletions src/System.Management.Automation/engine/COM/ComUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ private static string GetStringFromCustomType(COM.ITypeInfo typeinfo, IntPtr ref
return "UnknownCustomtype";
}

// Disable obsolete warning about VarEnum in CoreCLR
#pragma warning disable 618

/// <summary>
/// This function gets a string representation of the Type Descriptor
/// This is used in generating signature for Properties and Methods.
Expand Down Expand Up @@ -259,8 +256,6 @@ internal static Type GetTypeFromTypeDesc(COM.TYPEDESC typedesc)
return VarEnumSelector.GetTypeForVarEnum(vt);
}

#pragma warning restore 618

/// <summary>
/// Converts a FuncDesc out of GetFuncDesc into a MethodInformation.
/// </summary>
Expand Down
Loading