diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshalling/ReadOnlySpanMarshaller.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshalling/ReadOnlySpanMarshaller.cs
index 93e6db64729e81..972a1e706a9626 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshalling/ReadOnlySpanMarshaller.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshalling/ReadOnlySpanMarshaller.cs
@@ -188,6 +188,7 @@ public void FromUnmanaged(TUnmanagedElement* unmanaged)
///
/// Returns the managed value representing the native array.
///
+ /// A span over managed values of the array.
public ReadOnlySpan ToManaged()
{
return new ReadOnlySpan(_managedValues!);
@@ -196,6 +197,7 @@ public ReadOnlySpan ToManaged()
///
/// Returns a span that points to the memory where the unmanaged elements of the array are stored.
///
+ /// The number of elements in the array.
/// A span over unmanaged values of the array.
public ReadOnlySpan GetUnmanagedValuesSource(int numElements)
{
@@ -205,6 +207,7 @@ public ReadOnlySpan GetUnmanagedValuesSource(int numElements)
///
/// Returns a span that points to the memory where the managed elements of the array should be stored.
///
+ /// The number of elements in the array.
/// A span where managed values of the array should be stored.
public Span GetManagedValuesDestination(int numElements)
{
diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Swift/SwiftTypes.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Swift/SwiftTypes.cs
index a8c4a18c30d727..58fff0aa269ccb 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Swift/SwiftTypes.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Swift/SwiftTypes.cs
@@ -42,6 +42,7 @@ public SwiftSelf(void* value)
/// Represents the Swift 'self' context when the argument is Swift frozen struct T, which is either enregistered into multiple registers,
/// or passed by reference in the 'self' register.
///
+ /// The type of the frozen struct to pass in the 'self' context.
///
///
/// This struct is used to pass the Swift frozen struct T to Swift functions in the context of interop with .NET.
diff --git a/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/Marshalling/ComVariantMarshaller.cs b/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/Marshalling/ComVariantMarshaller.cs
index 9c2375d3a97fa6..a824eb5dcce0b1 100644
--- a/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/Marshalling/ComVariantMarshaller.cs
+++ b/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/Marshalling/ComVariantMarshaller.cs
@@ -22,6 +22,13 @@ public static partial class ComVariantMarshaller
// VARIANT_BOOL constants.
private const short VARIANT_TRUE = -1;
private const short VARIANT_FALSE = 0;
+
+ ///
+ /// Converts a managed object to an unmanaged .
+ ///
+ /// The managed object.
+ /// A that represents the provided managed object.
+ /// The type of is not supported.
public static ComVariant ConvertToUnmanaged(object? managed)
{
if (managed is null)
@@ -103,6 +110,12 @@ private static unsafe bool TryCreateOleVariantForInterfaceWrapper(object managed
}
#pragma warning restore CA1416 // Validate platform compatibility
+ ///
+ /// Converts an unmanaged to a managed object.
+ ///
+ /// The unmanaged variant.
+ /// A managed object that represents the same value as .
+ /// The type of data stored in is not supported.
public static unsafe object? ConvertToManaged(ComVariant unmanaged)
{
#pragma warning disable CS0618 // Type or member is obsolete
@@ -195,6 +208,10 @@ private static unsafe bool TryCreateOleVariantForInterfaceWrapper(object managed
#pragma warning restore CS0618 // Type or member is obsolete
}
+ ///
+ /// Disposes the unmanaged .
+ ///
+ /// The object to dispose.
public static void Free(ComVariant unmanaged) => unmanaged.Dispose();
///