Show Menu
Cheatography

A rough guide to the ZenSharp mnemonics plugin for ReSharper (https://github.com/ulex/ZenSharp)

Access

p
public
_
private
i
internal
P
protected

Modifier

s
sealed
a
abstract
v
virtual
r
readonly
capit­alise member type
static

Member Type

p
property
 
field
m
method
i
interface
c
class
e
enum
field uses a space
 

Return type

~
return type initial
 
IEnume­rable of return type
l
return type initial
 
IList
sl
return type initial
 
sorted list
di
return type initial return type initial
 
dictionary
 
return type initial
a
array of return type
 
return type initial
?
nullable return type
 
s
 
string
 
by
 
byte
 
b
 
bool
 
dt
 
datetime
 
d
 
double
 
i
 
int
 
ui
 
uint
 
g
 
guid
 
dc
 
decimal
 
t
 
custom type
enumerable modifiers can also be used by themselves (somet­imes)

Property Set Access

+
public set
+p
protected set
only works with proper­ties; default is private set
 

Usage

access modifier member type return type name property set access
parts are optional; e.g. return type can be omitted if return type is void

Examples

pPsExampleProperty+
public static string Exampl­ePr­operty { get; set; }
pmExampleMethod
public void Exampl­eMe­thod() { }

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          C# Naming Conventions Cheat Sheet