You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add non aot compatible support for collection reading and writing
* updates after cherry-pick
* Fix override mis match
* pr fb
* update api
* swap to aot friendly APIs in AOAI
* Update sdk/core/System.ClientModel/src/ModelReaderWriter/Reflection/ReflectionModelBuilder.cs
Co-authored-by: Christopher Scott <[email protected]>
* Update sdk/core/System.ClientModel/src/ModelReaderWriter/Reflection/ReflectionModelBuilder.cs
Co-authored-by: Christopher Scott <[email protected]>
* update to use AOT safe APIs
---------
Co-authored-by: Christopher Scott <[email protected]>
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
/// Converts the value of a model into a <see cref="BinaryData"/>.
20
18
/// </summary>
@@ -24,8 +22,9 @@ public static class ModelReaderWriter
24
22
/// <returns>A <see cref="BinaryData"/> representation of the model in the <see cref="ModelReaderWriterOptions.Format"/> specified by the <paramref name="options"/>.</returns>
25
23
/// <exception cref="FormatException">If the model does not support the requested <see cref="ModelReaderWriterOptions.Format"/>.</exception>
26
24
/// <exception cref="ArgumentNullException">If <paramref name="model"/> is null.</exception>
25
+
[RequiresDynamicCode("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
26
+
[RequiresUnreferencedCode("This method uses reflection. Use the overload that takes a ModelReaderWriterContext to be AOT compatible.")]
0 commit comments