throw new NotImplementedException ();
}
+#if NET_4_5
+ public static Type GetTypeFromCLSID (Guid clsid)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
+
#if !FULL_AOT_RUNTIME
[Obsolete]
[MonoTODO]
PtrToStructure (ptr, (object)structure);
}
- public static object PtrToStructure<T> (IntPtr ptr) {
- return PtrToStructure (ptr, typeof (T));
+ public static T PtrToStructure<T> (IntPtr ptr) {
+ return (T) PtrToStructure (ptr, typeof (T));
}
#endif
}
#if NET_4_5
- public static Delegate GetDelegateForFunctionPointer<T> (IntPtr ptr) {
- return GetDelegateForFunctionPointer (ptr, typeof (T));
+ public static TDelegate GetDelegateForFunctionPointer<TDelegate> (IntPtr ptr) {
+ return (TDelegate) (object) GetDelegateForFunctionPointer (ptr, typeof (TDelegate));
}
#endif