1 type derived from IObjectReference
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (1)
147internal class ObjectReference<T> : IObjectReference
153 references to IObjectReference
PresentationFramework (153)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (39)
33private IObjectReference _inner = null; 56private IObjectReference GetDefaultReference<T>() => _default.AsInterface<T>(); 57private IObjectReference GetReferenceForQI() => _inner ?? _default.ObjRef; 251private IObjectReference _inner = null; 274private IObjectReference GetDefaultReference<T>() => _default.AsInterface<T>(); 275private IObjectReference GetReferenceForQI() => _inner ?? _default.ObjRef; 317private IObjectReference _inner = null; 379private IObjectReference GetDefaultReference<T>() => _default.AsInterface<T>(); 380private IObjectReference GetReferenceForQI() => _inner ?? _default.ObjRef; 423public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.AlternateWordForm obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As<IAlternateWordForm.Vftbl>(); 424public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 431public static void DisposeMarshaler(IObjectReference value) => MarshalInspectable.DisposeMarshaler(value); 524public static implicit operator IAlternateWordForm(IObjectReference obj) => (obj != null) ? new IAlternateWordForm(obj) : null; 526public IObjectReference ObjRef { get => _obj; } 530public IAlternateWordForm(IObjectReference obj) : this(obj.As<Vftbl>()) {} 965public static implicit operator IUnicodeCharactersStatics(IObjectReference obj) => (obj != null) ? new IUnicodeCharactersStatics(obj) : null; 967public IObjectReference ObjRef { get => _obj; } 971public IUnicodeCharactersStatics(IObjectReference obj) : this(obj.As<Vftbl>()) {} 1208public static implicit operator IWordSegment(IObjectReference obj) => (obj != null) ? new IWordSegment(obj) : null; 1210public IObjectReference ObjRef { get => _obj; } 1214public IWordSegment(IObjectReference obj) : this(obj.As<Vftbl>()) {} 1376public static implicit operator IWordsSegmenter(IObjectReference obj) => (obj != null) ? new IWordsSegmenter(obj) : null; 1378public IObjectReference ObjRef { get => _obj; } 1382public IWordsSegmenter(IObjectReference obj) : this(obj.As<Vftbl>()) {} 1425IObjectReference __handler = default; 1510public static implicit operator IWordsSegmenterFactory(IObjectReference obj) => (obj != null) ? new IWordsSegmenterFactory(obj) : null; 1512public IObjectReference ObjRef { get => _obj; } 1516public IWordsSegmenterFactory(IObjectReference obj) : this(obj.As<Vftbl>()) {} 1547public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegment obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As<IWordSegment.Vftbl>(); 1548public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 1555public static void DisposeMarshaler(IObjectReference value) => MarshalInspectable.DisposeMarshaler(value); 1584public static unsafe IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler managedDelegate) => 1587public static IntPtr GetAbi(IObjectReference value) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler>.GetAbi(value); 1609IObjectReference __precedingWords = default; 1610IObjectReference __words = default; 1628public static void DisposeMarshaler(IObjectReference value) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler>.DisposeMarshaler(value); 1656public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordsSegmenter obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As<IWordsSegmenter.Vftbl>(); 1657public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 1664public static void DisposeMarshaler(IObjectReference value) => MarshalInspectable.DisposeMarshaler(value);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (24)
69private IObjectReference _inner = null; 151private IObjectReference GetDefaultReference<T>() => _default.AsInterface<T>(); 152private IObjectReference GetReferenceForQI() => _inner ?? _default.ObjRef; 318public static implicit operator ILanguage(IObjectReference obj) => (obj != null) ? new ILanguage(obj) : null; 320public IObjectReference ObjRef { get => _obj; } 324public ILanguage(IObjectReference obj) : this(obj.As<Vftbl>()) {} 445public static implicit operator ILanguage2(IObjectReference obj) => (obj != null) ? new ILanguage2(obj) : null; 447public IObjectReference ObjRef { get => _obj; } 451public ILanguage2(IObjectReference obj) : this(obj.As<Vftbl>()) {} 519public static implicit operator ILanguageExtensionSubtags(IObjectReference obj) => (obj != null) ? new ILanguageExtensionSubtags(obj) : null; 521public IObjectReference ObjRef { get => _obj; } 525public ILanguageExtensionSubtags(IObjectReference obj) : this(obj.As<Vftbl>()) {} 600public static implicit operator ILanguageFactory(IObjectReference obj) => (obj != null) ? new ILanguageFactory(obj) : null; 602public IObjectReference ObjRef { get => _obj; } 606public ILanguageFactory(IObjectReference obj) : this(obj.As<Vftbl>()) {} 702public static implicit operator ILanguageStatics(IObjectReference obj) => (obj != null) ? new ILanguageStatics(obj) : null; 704public IObjectReference ObjRef { get => _obj; } 708public ILanguageStatics(IObjectReference obj) : this(obj.As<Vftbl>()) {} 799public static implicit operator ILanguageStatics2(IObjectReference obj) => (obj != null) ? new ILanguageStatics2(obj) : null; 801public IObjectReference ObjRef { get => _obj; } 805public ILanguageStatics2(IObjectReference obj) : this(obj.As<Vftbl>()) {} 836public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Globalization.Language obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As<ILanguage.Vftbl>(); 837public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 844public static void DisposeMarshaler(IObjectReference value) => MarshalInspectable.DisposeMarshaler(value);
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (3)
51public static bool TryUnwrapObject(object o, out IObjectReference objRef) 66objRef = (IObjectReference)type.GetField(objRefWrapper.ObjectReferenceField, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly).GetValue(o); 83public static IObjectReference GetObjectReferenceForInterface(IntPtr externalComObject)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (3)
33public static IObjectReference CreateCCWForObject(object obj) 105IObjectReference objRef = ComWrappersSupport.GetObjectReferenceForInterface(externalComObject); 129if (ComWrappersSupport.TryUnwrapObject(obj, out var objRef))
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (13)
86IObjectReference restrictedErrorInfoToSave = null; 100IObjectReference restrictedErrorInfoRef = ObjectReference<ABI.WinRT.Interop.IRestrictedErrorInfo.Vftbl>.Attach(ref restrictedErrorInfoPtr); 109using IObjectReference languageException = languageErrorInfo.GetLanguageException(); 170if (ex.TryGetRestrictedLanguageErrorObject(out var restrictedErrorObject)) 192using var managedExceptionWrapper = ComWrappersSupport.CreateCCWForObject(ex); 198using var iErrorInfo = ComWrappersSupport.CreateCCWForObject(new ManagedExceptionErrorInfo(ex)); 217if (ex.TryGetRestrictedLanguageErrorObject(out var restrictedErrorObject)) 239private readonly IObjectReference _realErrorObject; 241internal __RestrictedErrorObject(IObjectReference errorObject) 246public IObjectReference RealErrorObject 261IObjectReference restrictedErrorObject, 281out IObjectReference restrictedErrorObject) 315IObjectReference restrictedErrorInfoRef = ObjectReference<ABI.WinRT.Interop.IRestrictedErrorInfo.Vftbl>.Attach(ref restrictedErrorInfoPtr);
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (3)
92public static implicit operator IInspectable(IObjectReference obj) => obj.As<Vftbl>(); 95public IObjectReference ObjRef { get => _obj; } 96public IInspectable(IObjectReference obj) : this(obj.As<Vftbl>()) { }
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (10)
28IObjectReference GetLanguageException(); 202public static implicit operator IErrorInfo(IObjectReference obj) => (obj != null) ? new IErrorInfo(obj) : null; 208public IErrorInfo(IObjectReference obj) : this(obj.As<Vftbl>()) { } 291public static implicit operator ILanguageExceptionErrorInfo(IObjectReference obj) => (obj != null) ? new ILanguageExceptionErrorInfo(obj) : null; 297public ILanguageExceptionErrorInfo(IObjectReference obj) : this(obj.As<Vftbl>()) { } 303public IObjectReference GetLanguageException() 362public static implicit operator ISupportErrorInfo(IObjectReference obj) => (obj != null) ? new ISupportErrorInfo(obj) : null; 368public ISupportErrorInfo(IObjectReference obj) : this(obj.As<Vftbl>()) { } 396public static implicit operator IRestrictedErrorInfo(IObjectReference obj) => (obj != null) ? new IRestrictedErrorInfo(obj) : null; 402public IRestrictedErrorInfo(IObjectReference obj) : this(obj.As<Vftbl>()) { }
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IContextCallback.cs (2)
56public static implicit operator IContextCallback(IObjectReference obj) => (obj != null) ? new IContextCallback(obj) : null; 62public IContextCallback(IObjectReference obj) : this(obj.As<Vftbl>()) { }
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (32)
617foreach (var marshaler in _marshalers) 629public IObjectReference[] _marshalers; 632public static unsafe MarshalerArray CreateMarshalerArray(T[] array, Func<T, IObjectReference> createMarshaler) 645m._marshalers = new IObjectReference[length]; 762public static IntPtr GetAbi(IObjectReference objRef) 767public static void DisposeMarshaler(IObjectReference objRef) 783private static Func<T, IObjectReference> _ToAbi; 785private static Func<IObjectReference, IObjectReference> _As; 809public static IObjectReference CreateMarshaler(T value) 832var inspectable = MarshalInspectable.CreateMarshaler(value, true); 837public static IntPtr GetAbi(IObjectReference value) => 842public static void DisposeMarshaler(IObjectReference value) => MarshalInterfaceHelper<T>.DisposeMarshaler(value); 883private static Func<T, IObjectReference> BindToAbi() 886return Expression.Lambda<Func<T, IObjectReference>>( 892private static Func<IObjectReference, IObjectReference> BindAs() 895var parms = new[] { Expression.Parameter(typeof(IObjectReference), "arg") }; 896return Expression.Lambda<Func<IObjectReference, IObjectReference>>( 899typeof(IObjectReference).GetMethod("As", Type.EmptyTypes).MakeGenericMethod(helperType.FindVftblType()) 906public static IObjectReference CreateMarshaler(object o, bool unwrapObject = true) 913if (unwrapObject && ComWrappersSupport.TryUnwrapObject(o, out var objRef)) 920public static IntPtr GetAbi(IObjectReference objRef) => 950public static void DisposeMarshaler(IObjectReference objRef) => MarshalInterfaceHelper<object>.DisposeMarshaler(objRef); 955var objRef = CreateMarshaler(o, unwrapObject); 961var objRef = CreateMarshaler(o, unwrapObject); 1073GetAbi = (object objRef) => MarshalInterface<T>.GetAbi((IObjectReference)objRef); 1075FromManaged = (T value) => ((IObjectReference)CreateMarshaler(value)).GetRef(); 1076DisposeMarshaler = (object objRef) => MarshalInterface<T>.DisposeMarshaler((IObjectReference)objRef); 1083GetAbi = (object objRef) => MarshalInspectable.GetAbi((IObjectReference)objRef); 1087DisposeMarshaler = (object objRef) => MarshalInspectable.DisposeMarshaler((IObjectReference)objRef);
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (2)
73public unsafe IObjectReference As(Guid iid) => As<IUnknownVftbl>(iid); 78var ctor = typeof(T).GetConstructor(new[] { typeof(IObjectReference) });
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
199internal static bool TryGetMarshalerTypeForProjectedRuntimeClass(IObjectReference objectReference, out Type type)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (14)
37public static IObjectReference CreateMarshaler(global::System.Collections.Generic.IEnumerable<T> obj) => 40public static IntPtr GetAbi(IObjectReference objRef) => 49public static void DisposeMarshaler(IObjectReference objRef) => objRef?.Dispose(); 60public FromAbiHelper(IObjectReference obj) : 152public static implicit operator IEnumerable<T>(IObjectReference obj) => (obj != null) ? new IEnumerable<T>(obj) : null; 155public IObjectReference ObjRef { get => _obj; } 160public IEnumerable(IObjectReference obj) : this(obj.As<Vftbl>()) { } 193public static IObjectReference CreateMarshaler(global::System.Collections.Generic.IEnumerator<T> obj) => 196public static IntPtr GetAbi(IObjectReference objRef) => 208public static void DisposeMarshaler(IObjectReference objRef) => objRef?.Dispose(); 219public FromAbiHelper(IObjectReference obj) : 556public static implicit operator IEnumerator<T>(IObjectReference obj) => (obj != null) ? new IEnumerator<T>(obj) : null; 559public IObjectReference ObjRef { get => _obj; } 566public IEnumerator(IObjectReference obj) : this(obj.As<Vftbl>()) { }
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (7)
32public static IObjectReference CreateMarshaler(global::System.Collections.Generic.IReadOnlyList<T> obj) => 35public static IntPtr GetAbi(IObjectReference objRef) => 44public static void DisposeMarshaler(IObjectReference objRef) => objRef?.Dispose(); 56public FromAbiHelper(IObjectReference obj) : 349public static implicit operator IReadOnlyList<T>(IObjectReference obj) => (obj != null) ? new IReadOnlyList<T>(obj) : null; 352public IObjectReference ObjRef { get => _obj; } 357public IReadOnlyList(IObjectReference obj) : this(obj.As<Vftbl>()) { }