This is a collection of custom C# code snippets which I use on a regular basis.
Shortcut | Name | Description |
---|---|---|
bf |
Backing field comment | Insert an XML documentation comment for the backing field for a property. |
ceb |
Contract end contract block | Emits a Contract.EndContractBlock() statement. |
sctor |
Deserialization constructor | Insert a constructor for deserializating an ISerializable object. |
jctor |
JSON constructor | Insert a constructor for deserializating a JSON object. |
tlz |
Throw if argument is less than zero | Throw an ArgumentOutOfRangeException if the specified argument is less than zero. |
tan |
Throw if argument is null | Throw an ArgumentNullException if the specified argument is null. |
tasn |
Throw if string argument is null or empty | Throw an ArgumentException if the specified string argument is null or empty. |
ct |
CancellationToken Parameter | Insert a declaration for a CancellationToken parameter or variable. |