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