[][src]Module genco::csharp

Specialization for Csharp code generation.

Examples

String quoting in Dart:

use genco::prelude::*;

let toks: csharp::Tokens = quote!(#("hello \n world".quoted()));
assert_eq!("\"hello \\n world\"", toks.to_string().unwrap());

Structs

Array

An array type in C#.

BlockComment

Format a doc comment where each line is preceeded by ///.

Config

Config data for Csharp formatting.

Csharp

Language specialization for C#.

Optional

An optional type.

Simple

Simple type.

Type

A class.

TypeBox

Boxed type container

Void

The special void type.

Enums

Kind

The kind of the pointed to type.

Modifier

A Csharp modifier.

TypeEnum

Enum that can be used for casting between variants of the same type

Constants

BOOLEAN

Boolean type

BYTE

Byte type.

DECIMAL

Decimal type

DOUBLE

Double type.

INT16

Int16 type.

INT32

Int32 type.

INT64

Int64 type.

SBYTE

Signed Byte type.

SINGLE

Float type.

UINT16

Uint16 type.

UINT32

Uint32 type.

UINT64

UInt64 type.

VOID

The void type.

Traits

TypeArgs

Helper trait for things that can be turned into generic arguments.

TypeTrait

Trait implemented by all types

Functions

array

Setup an array type.

block_comment

Format a doc comment where each line is preceeded by ///.

local

Setup a local element from borrowed components.

optional

Setup an optional type.

using

Construct an imported type.

Type Definitions

Tokens

Tokens container specialization for C#.