diff --git a/src/WinRT.Runtime/Projections/ICustomPropertyProvider.net5.cs b/src/WinRT.Runtime/Projections/ICustomPropertyProvider.net5.cs
index 674631c80..469a5e6b3 100644
--- a/src/WinRT.Runtime/Projections/ICustomPropertyProvider.net5.cs
+++ b/src/WinRT.Runtime/Projections/ICustomPropertyProvider.net5.cs
@@ -1,55 +1,55 @@
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-
-using System;
-using System.Diagnostics.CodeAnalysis;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using WinRT;
-
-// These types have the same GUIDs in both Microsoft.UI.Xaml and Windows.UI.Xaml,
-// so we don't need to duplicate them for the internal usage here as they can be transparently used by both WUX and MUX.
-namespace Microsoft.UI.Xaml.Data
-{
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+using System;
+using System.Diagnostics.CodeAnalysis;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using WinRT;
+
+// These types have the same GUIDs in both Microsoft.UI.Xaml and Windows.UI.Xaml,
+// so we don't need to duplicate them for the internal usage here as they can be transparently used by both WUX and MUX.
+namespace Microsoft.UI.Xaml.Data
+{
[global::WinRT.WindowsRuntimeType]
- [global::WinRT.WindowsRuntimeHelperType(typeof(global::ABI.Microsoft.UI.Xaml.Data.ICustomProperty))]
- [Guid("30DA92C0-23E8-42A0-AE7C-734A0E5D2782")]
- internal interface ICustomProperty
- {
- object GetValue(object target);
- void SetValue(object target, object value);
- object GetIndexedValue(object target, object index);
- void SetIndexedValue(object target, object value, object index);
- bool CanRead { get; }
- bool CanWrite { get; }
- string Name { get; }
- global::System.Type Type { get; }
+ [global::WinRT.WindowsRuntimeHelperType(typeof(global::ABI.Microsoft.UI.Xaml.Data.ICustomProperty))]
+ [Guid("30DA92C0-23E8-42A0-AE7C-734A0E5D2782")]
+ internal interface ICustomProperty
+ {
+ object GetValue(object target);
+ void SetValue(object target, object value);
+ object GetIndexedValue(object target, object index);
+ void SetIndexedValue(object target, object value, object index);
+ bool CanRead { get; }
+ bool CanWrite { get; }
+ string Name { get; }
+ global::System.Type Type { get; }
}
///
/// An interface complementing providing the implementation to expose the specified properties.
///
-#if EMBED
- internal
-#else
+#if EMBED
+ internal
+#else
public
-#endif
- interface IBindableCustomPropertyImplementation
+#endif
+ interface IBindableCustomPropertyImplementation
{
///
/// Get the generated implementation representing the specified property name.
///
/// The name of the property to get.
/// The implementation for the property specified by .
- public Microsoft.UI.Xaml.Data.BindableCustomProperty GetProperty(string name);
-
+ public Microsoft.UI.Xaml.Data.BindableCustomProperty GetProperty(string name);
+
///
/// Get the generated implementation representing the specified index property type.
///
/// The index property to get.
/// The implementation for the property specified by .
- public Microsoft.UI.Xaml.Data.BindableCustomProperty GetProperty(Type indexParameterType);
+ public Microsoft.UI.Xaml.Data.BindableCustomProperty GetProperty(Type indexParameterType);
}
///
@@ -57,9 +57,9 @@ interface IBindableCustomPropertyImplementation
/// rather than reflection. This is used by the source generator generating the implementation for .
///
[global::WinRT.WinRTExposedType(typeof(global::ABI.Microsoft.UI.Xaml.Data.ManagedCustomPropertyWinRTTypeDetails))]
-#if EMBED
- internal
-#else
+#if EMBED
+ internal
+#else
public
#endif
sealed class BindableCustomProperty : ICustomProperty
@@ -124,184 +124,184 @@ void ICustomProperty.SetValue(object target, object value)
_setValue(target, value);
}
- }
-}
-
-namespace ABI.Microsoft.UI.Xaml.Data
-{
- [Guid("30DA92C0-23E8-42A0-AE7C-734A0E5D2782")]
- internal unsafe interface ICustomProperty
+ }
+}
+
+namespace ABI.Microsoft.UI.Xaml.Data
+{
+ [Guid("30DA92C0-23E8-42A0-AE7C-734A0E5D2782")]
+ internal unsafe interface ICustomProperty
{
public static readonly IntPtr AbiToProjectionVftablePtr;
public static global::System.Guid IID => global::WinRT.Interop.IID.IID_ICustomProperty;
-
+
static unsafe ICustomProperty()
{
AbiToProjectionVftablePtr = ComWrappersSupport.AllocateVtableMemory(typeof(ICustomProperty), sizeof(IInspectable.Vftbl) + sizeof(IntPtr) * 8);
*(IInspectable.Vftbl*)AbiToProjectionVftablePtr = IInspectable.Vftbl.AbiToProjectionVftable;
((delegate* unmanaged*)AbiToProjectionVftablePtr)[6] = &Do_Abi_get_Type_0;
- ((delegate* unmanaged*)AbiToProjectionVftablePtr)[7] = &Do_Abi_get_Name_1;
- ((delegate* unmanaged*)AbiToProjectionVftablePtr)[8] = &Do_Abi_GetValue_2;
- ((delegate* unmanaged*)AbiToProjectionVftablePtr)[9] = &Do_Abi_SetValue_3;
- ((delegate* unmanaged*)AbiToProjectionVftablePtr)[10] = &Do_Abi_GetIndexedValue_4;
- ((delegate* unmanaged*)AbiToProjectionVftablePtr)[11] = &Do_Abi_SetIndexedValue_5;
- ((delegate* unmanaged*)AbiToProjectionVftablePtr)[12] = &Do_Abi_get_CanWrite_6;
+ ((delegate* unmanaged*)AbiToProjectionVftablePtr)[7] = &Do_Abi_get_Name_1;
+ ((delegate* unmanaged*)AbiToProjectionVftablePtr)[8] = &Do_Abi_GetValue_2;
+ ((delegate* unmanaged*)AbiToProjectionVftablePtr)[9] = &Do_Abi_SetValue_3;
+ ((delegate* unmanaged*)AbiToProjectionVftablePtr)[10] = &Do_Abi_GetIndexedValue_4;
+ ((delegate* unmanaged*)AbiToProjectionVftablePtr)[11] = &Do_Abi_SetIndexedValue_5;
+ ((delegate* unmanaged*)AbiToProjectionVftablePtr)[12] = &Do_Abi_get_CanWrite_6;
((delegate* unmanaged*)AbiToProjectionVftablePtr)[13] = &Do_Abi_get_CanRead_7;
- }
-
- [UnmanagedCallersOnly]
- private static unsafe int Do_Abi_GetValue_2(IntPtr thisPtr, IntPtr target, IntPtr* result)
- {
- object __result = default;
-
- *result = default;
-
- try
- {
- __result = global::WinRT.ComWrappersSupport.FindObject(thisPtr).GetValue(MarshalInspectable