Skip to content

Commit

Permalink
cleanup ref assembly attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jul 11, 2022
1 parent 898a948 commit cabcc42
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ namespace System.Runtime.InteropServices.Marshalling
/// <typeparam name="T">Array element type</typeparam>
/// <typeparam name="TUnmanagedElement">The unmanaged type for the element type</typeparam>
[CLSCompliant(false)]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder[]),
[CustomMarshaller(typeof(CustomMarshallerAttribute.GenericPlaceholder[]),
MarshalMode.Default,
typeof(ArrayMarshaller<,>))]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder[]),
[CustomMarshaller(typeof(CustomMarshallerAttribute.GenericPlaceholder[]),
MarshalMode.ManagedToUnmanagedIn,
typeof(ArrayMarshaller<,>.ManagedToUnmanagedIn))]
[ContiguousCollectionMarshaller]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ namespace System.Runtime.InteropServices.Marshalling
/// <typeparam name="T">Array element pointer type</typeparam>
/// <typeparam name="TUnmanagedElement">The unmanaged type for the element pointer type</typeparam>
[CLSCompliant(false)]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder*[]),
[CustomMarshaller(typeof(CustomMarshallerAttribute.GenericPlaceholder*[]),
MarshalMode.Default,
typeof(PointerArrayMarshaller<,>))]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder*[]),
[CustomMarshaller(typeof(CustomMarshallerAttribute.GenericPlaceholder*[]),
MarshalMode.ManagedToUnmanagedIn,
typeof(PointerArrayMarshaller<,>.ManagedToUnmanagedIn))]
[ContiguousCollectionMarshaller]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2146,14 +2146,14 @@ public ref struct ManagedToUnmanagedIn
}
}

[CLSCompliant(false)]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder[]),
MarshalMode.Default,
typeof(ArrayMarshaller<,>))]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder[]),
MarshalMode.ManagedToUnmanagedIn,
typeof(ArrayMarshaller<,>.ManagedToUnmanagedIn))]
[ContiguousCollectionMarshaller]
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(CustomMarshallerAttribute.GenericPlaceholder[]),
System.Runtime.InteropServices.Marshalling.MarshalMode.Default,
typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(CustomMarshallerAttribute.GenericPlaceholder[]),
System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn,
typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>.ManagedToUnmanagedIn))]
[System.Runtime.InteropServices.Marshalling.ContiguousCollectionMarshaller]
public static unsafe class ArrayMarshaller<T, TUnmanagedElement>
where TUnmanagedElement : unmanaged
{
Expand Down Expand Up @@ -2283,14 +2283,14 @@ public sealed partial class NativeMarshallingAttribute : System.Attribute
public NativeMarshallingAttribute(System.Type nativeType) { }
public System.Type NativeType { get { throw null; } }
}
[CLSCompliant(false)]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder*[]),
MarshalMode.Default,
typeof(PointerArrayMarshaller<,>))]
[CustomMarshaller(typeof(CustomTypeMarshallerAttribute.GenericPlaceholder*[]),
MarshalMode.ManagedToUnmanagedIn,
typeof(PointerArrayMarshaller<,>.ManagedToUnmanagedIn))]
[ContiguousCollectionMarshaller]
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(CustomMarshallerAttribute.GenericPlaceholder*[]),
System.Runtime.InteropServices.Marshalling.MarshalMode.Default,
typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(CustomMarshallerAttribute.GenericPlaceholder*[]),
System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn,
typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>.ManagedToUnmanagedIn))]
[System.Runtime.InteropServices.Marshalling.ContiguousCollectionMarshaller]
public static unsafe class PointerArrayMarshaller<T, TUnmanagedElement>
where T : unmanaged
where TUnmanagedElement : unmanaged
Expand Down

0 comments on commit cabcc42

Please sign in to comment.