From: Aaron Robinson Date: Mon, 11 Feb 2019 19:10:26 +0000 (-0800) Subject: Remove Obsolete attribute from Variant APIs (dotnet/corefx#35161) X-Git-Tag: submit/tizen/20210909.063632~11031^2~2484 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7695c3df6189880be3189323d0d00ef332e16e5;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove Obsolete attribute from Variant APIs (dotnet/corefx#35161) * Remove Obsolete attribute from Variant APIs Commit migrated from https://github.com/dotnet/corefx/commit/eeaeb176be75e466ca8efc7b1c59b602ae37f1ec --- diff --git a/src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs b/src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs index 4f93dcc..e2740ab 100644 --- a/src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs +++ b/src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs @@ -548,30 +548,24 @@ namespace System.Runtime.InteropServices [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public static System.IntPtr GetFunctionPointerForDelegate(System.Delegate d) { throw null; } public static System.IntPtr GetFunctionPointerForDelegate(TDelegate d) { throw null; } - public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; } + public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) { throw null; } public static int GetHRForException(System.Exception e) { throw null; } public static int GetHRForLastWin32Error() { throw null; } public static System.IntPtr GetIDispatchForObject(object o) { throw null; } public static System.IntPtr GetIUnknownForObject(object o) { throw null; } public static int GetLastWin32Error() { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.")] public static void GetNativeVariantForObject(object obj, System.IntPtr pDstNativeVariant) { } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("GetNativeVariantForObject(T, IntPtr) may be unavailable in future releases.")] public static void GetNativeVariantForObject(T obj, System.IntPtr pDstNativeVariant) { } public static object GetObjectForIUnknown(System.IntPtr pUnk) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("GetObjectForNativeVariant(IntPtr) may be unavailable in future releases.")] public static object GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("GetObjectForNativeVariant(IntPtr) may be unavailable in future releases.")] public static T GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("GetObjectsForNativeVariants(IntPtr, Int32) may be unavailable in future releases.")] public static object[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("GetObjectsForNativeVariants(IntPtr, Int32) may be unavailable in future releases.")] public static T[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { throw null; } public static int GetStartComSlot(System.Type t) { throw null; } public static int GetEndComSlot(System.Type t) { throw null; } @@ -958,7 +952,6 @@ namespace System.Runtime.InteropServices I4 = 7, I8 = 9, [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("Marshalling as IDispatch may be unavailable in future releases.")] IDispatch = 26, IInspectable = 46, Interface = 28, @@ -972,10 +965,8 @@ namespace System.Runtime.InteropServices R4 = 11, R8 = 12, [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("Marshalling as SafeArray may be unavailable in future releases.")] SafeArray = 29, [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("Applying UnmanagedType.Struct is unnecessary when marshalling a struct. Support for UnmanagedType.Struct when marshalling a reference type may be unavailable in future releases.")] Struct = 27, SysInt = 31, SysUInt = 32, @@ -987,14 +978,12 @@ namespace System.Runtime.InteropServices U4 = 8, U8 = 10, [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("Marshalling as VariantBool may be unavailable in future releases.")] VariantBool = 37, [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] [System.ObsoleteAttribute("Marshalling as VBByRefString may be unavailable in future releases.")] VBByRefStr = 34, } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] - [System.ObsoleteAttribute("Marshalling VARIANTs may be unavailable in future releases.")] public enum VarEnum { VT_ARRAY = 8192,