-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathAttributeMessages.net5.cs
More file actions
33 lines (29 loc) · 1.84 KB
/
Copy pathAttributeMessages.net5.cs
File metadata and controls
33 lines (29 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace WinRT
{
/// <summary>
/// Messages for attributes used on CsWinRT APIs.
/// </summary>
internal static class AttributeMessages
{
/// <summary>
/// Message for a generic deprecated message that's annotated with <see cref="System.ObsoleteAttribute"/>.
/// </summary>
public const string GenericDeprecatedMessage = "This method is deprecated and will be removed in a future release.";
/// <summary>
/// Message for a generic annotation for a method using <see cref="System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute"/>.
/// </summary>
public const string GenericRequiresUnreferencedCodeMessage = "This method is not trim-safe, and is only supported for use when not using trimming (or AOT).";
/// <summary>
/// Message for marshalling or generic code requiring <see cref="System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute"/>.
/// </summary>
public const string MarshallingOrGenericInstantiationsRequiresDynamicCode = "The necessary marshalling code or generic instantiations might not be available.";
/// <summary>
/// Message for APIs not supported when dynamic code is not available (ie. in AOT environments).
/// </summary>
public const string NotSupportedIfDynamicCodeIsNotAvailable = "The annotated API is not supported when dynamic code is not available (ie. in AOT environments).";
/// <summary>
/// Message for suppressing trim warnings for <see cref="System.Type.MakeGenericType"/> calls with ABI types as type arguments for <see langword="unmanaged"/> constrained type parameters.
/// </summary>
public const string AbiTypesNeverHaveConstructors = "All ABI types never have a constructor that would need to be accessed via reflection.";
}
}