[−][src]Module genco::lang::csharp
Specialization for Csharp code generation.
String Quoting in C#
Since C# uses UTF-16 internally, but literal strings support C-style family of escapes.
use genco::prelude::*; let toks: csharp::Tokens = quote!("start π 😊 \n \x7f end"); assert_eq!("\"start \\u03c0 \\U0001f60a \\n \\x7f end\"", toks.to_string()?);
Structs
BlockComment | Format a doc comment where each line is preceeded by |
Comment | Format a doc comment where each line is preceeded by |
Config | Config data for Csharp formatting. |
Csharp | Language specialization for C#. |
Format | State using during formatting of C# language items. |
Import | The import of a C# type |
Enums
Any | Enum produced by AsAny::as_any() which can be used to identify and operate over a discrete language item type. |
Traits
AsAny | Language-specific conversion trait implemented by all language items. |
Functions
block_comment | Format a doc comment where each line is preceeded by |
comment | Format a doc comment where each line is preceeded by |
import | Construct an imported type. |
Type Definitions
Tokens | Tokens container specialization for C#. |