Summary
Fake version of the StringSyntaxAttribute, which was introduced in
.NET 7
- Namespace
-
System
.Diagnostics .CodeAnalysis - Base Types
-
- object
- Attribute
graph BT Type-->Base0["Attribute"]
Base0-->Base1["object"] Type["StringSyntaxAttribute"]
class Type type-node
Syntax
[SuppressMessage("ApiDesign", "RS0016:Add public types and members to the declared API")]
[SuppressMessage("Style", "IDE0060:Remove unused parameter")]
[AttributeUsage(AttributeTargets.All)]
public sealed class StringSyntaxAttribute : Attribute
Attributes
Type | Description |
---|---|
Suppress |
|
Suppress |
|
Attribute |
Constructors
Name | Summary |
---|---|
String |
Initializes a new instance of the
StringSyntaxAttribute
class.
|
String |
Initializes a new instance of the
StringSyntaxAttribute
class.
|
Fields
Name | Constant Value | Summary |
---|---|---|
CompositeFormat | CompositeFormat |
The syntax identifier for strings containing composite
formats.
static
|
DateTimeFormat | DateTimeFormat |
The syntax identifier for strings containing date
information.
static
|
Regex | Regex |
The syntax identifier for strings containing regular
expressions.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
NotNull |
T |
From
CommonExtensions
|