Snippets


language title shortcut
C# vn - new variable
C# vnx - new variable (with initializer)
C# oo - operator overloading
C# oo -- operator overloading
C# oo ! operator overloading
C# xsne !string.IsNullOrEmpty
C# xsnw !string.IsNullOrWhiteSpace
C# ppif #if directive
C# ppife #if-#else directive
C# ppr #region directive
C# oo % operator overloading
C# oo & operator overloading
C# oo * operator overloading
C# oo / operator overloading
C# oo ^ operator overloading
C# oo | operator overloading
C# oo ~ operator overloading
C# oo + operator overloading
C# oo ++ operator overloading
C# oo < operator overloading
C# oo << operator overloading
C# oo <= operator overloading
C# oo == operator overloading
C# oo > operator overloading
C# oo >= operator overloading
C# oo >> operator overloading
C# va array variable
C# vax array variable (with initializer)
C# a attribute
C# c_ Attribute class
C# a AttributeUsage attribute
C# vb Boolean variable
C# b braces
C# catch catch clause
C# c_ Collection<T> class
C# j Collection<T> type
C# vn Collection<T> variable
C# vnx Collection<T> variable (with initializer)
C# a Conditional attribute
C# cop conditional operator
C# copn conditional operator (equal to null)
C# copxn conditional operator (not equal to null)
C# this containing type name
C# dt DateTime type
C# dto DateTimeOffset type
C# da Debug.Assert
C# dw Debug.WriteLine
C# a DebuggerDisplay attribute
C# a DebuggerStepThrough attribute
C# d default keyword
C# a DefaultValue attribute
C# a Description attribute
C# c_ Dictionary<TKey, TValue> class
C# j Dictionary<TKey, TValue> type
C# vn Dictionary<TKey, TValue> variable
C# vnx Dictionary<TKey, TValue> variable (with initializer)
C# c_ Disposable class
C# dispose dispose pattern
C# doxn do while not null
C# don do while null
C# e else clause
C# eif else-if
C# c_ Enumerator class
C# n equal to null
C# equals Equals and GetHashCode
C# equals Equals and GetHashCode for value type
C# c_ Exception class
C# t explicit cast operator
C# oo explicit operator overloading
C# finally finally clause
C# a Flags attribute
C# fr for statement
C# frr for statement (reversed)
C# fe foreach statement
C# where generic type constraint
C# j HashSet<T> type
C# vn HashSet<T> variable
C# vnx HashSet<T> variable (with initializer)
C# j ICollection<T> type
C# c_ IComparer class
C# c_ IComparer<T> class
C# j IDictionary<TKey, TValue> type
C# j IEnumerable<T> type
C# c_ IEqualityComparer class
C# c_ IEqualityComparer<T> class
C# ifn if equal to null
C# ifx if not
C# ifxn if not equal to null
C# ifxtp if not TryParse
C# iftp if TryParse
C# j IList<T> type
C# j ImmutableArray<T> type
C# j ImmutableDictionary<TKey, TValue> type
C# j ImmutableHashSet<T> type
C# j ImmutableList<T> type
C# oo implicit operator overloading
C# vi Int32 variable
C# _ev interface event
C# _in interface indexer
C# _m interface method
C# _p interface property
C# _rp interface read-only property
C# ip internal auto property
C# ipps internal auto property with private setter
C# ic internal class
C# ik internal const
C# ico internal constructor
C# ide internal delegate
C# ien internal enum
C# iev internal event
C# iin internal indexer
C# ii internal interface
C# im internal method
C# irp internal read-only auto property
C# irf internal read-only field
C# irin internal read-only indexer
C# irpp internal read-only property
C# irrest internal readonly record struct
C# irst internal read-only struct
C# ire internal record
C# irest internal record struct
C# isc internal static class
C# ism internal static method
C# isrp internal static read-only auto property
C# isrf internal static read-only field
C# isrpp internal static read-only property
C# ist internal struct
C# ivp internal virtual auto property
C# ivm internal virtual method
C# ivrp internal virtual read-only auto property
C# ivrpp internal virtual read-only property
C# j IReadOnlyCollection<T> type
C# j IReadOnlyDictionary<TKey, TValue> type
C# j IReadOnlyList<T> type
C# kvp KeyValuePair type
C# kvpc KeyValuePair.Create method
C# l lambda expression
C# l2 lambda expression with 2 parameters
C# l0 lambda expression without parameters
C# j LinkedList<T> type
C# vn LinkedList<T> variable
C# j List<T> type
C# vn List<T> variable
C# vnx List<T> variable (with initializer)
C# v local variable declaration
C# vt local variable declaration with explicit cast operator
C# no nameof operator
C# xn not equal to null
C# o object keyword
C# c_ ObservableCollection<T> class
C# j ObservableCollection<T> type
C# vn ObservableCollection<T> variable
C# vnx ObservableCollection<T> variable (with initializer)
C# a Obsolete attribute
C# pa parameter array
C# pp private auto property
C# ppps private auto property with private setter
C# pc private class
C# pk private const
C# pco private constructor
C# pde private delegate
C# pen private enum
C# pev private event
C# pf private field
C# pin private indexer
C# pm private method
C# prp private read-only auto property
C# prf private read-only field
C# prin private read-only indexer
C# prpp private read-only property
C# prrest private readonly record struct
C# prst private read-only struct
C# pre private record
C# prest private record struct
C# psc private static class
C# psf private static field
C# psm private static method
C# psrp private static read-only auto property
C# psrf private static read-only field
C# psrpp private static read-only property
C# pst private struct
C# p public auto property
C# pps public auto property with private setter
C# c public class
C# k public const
C# co public constructor
C# de public delegate
C# en public enum
C# ev public event
C# f public field
C# in public indexer
C# i public interface
C# m public method
C# rp public read-only auto property
C# rf public read-only field
C# rin public read-only indexer
C# rpp public read-only property
C# rrest public readonly record struct
C# rst public read-only struct
C# re public record
C# rest public record struct
C# sc public static class
C# sf public static field
C# sm public static method
C# srp public static read-only auto property
C# srf public static read-only field
C# srpp public static read-only property
C# st public struct
C# vp public virtual auto property
C# vm public virtual method
C# vrp public virtual read-only auto property
C# vrpp public virtual read-only property
C# j Queue<T> type
C# vn Queue<T> variable
C# c_ ReadOnlyCollection<T> class
C# j ReadOnlyCollection<T> type
C# vn ReadOnlyCollection<T> variable
C# j ReadOnlyDictionary<TKey, TValue> type
C# vn ReadOnlyDictionary<TKey, TValue> variable
C# j ReadOnlyObservableCollection<T> type
C# vn ReadOnlyObservableCollection<T> variable
C# a Required attribute
C# ref return false
C# r return keyword
C# ren return null
C# ret return true
C# c_ Singleton class
C# j Stack<T> type
C# vn Stack<T> variable
C# sco static constructor
C# s string keyword
C# vs String variable
C# sne string.IsNullOrEmpty
C# snw string.IsNullOrWhiteSpace
C# swe switch expression
C# sw switch statement
C# sh switch statement [Obsolete]
C# thn throw new
C# thn throw new ArgumentException
C# thn throw new ArgumentNullException
C# thn throw new ArgumentOutOfRangeException
C# thn throw new InvalidCastException
C# thn throw new InvalidOperationException
C# thn throw new NotImplementedException
C# thn throw new NotSupportedException
C# thn throw new ObjectDisposedException
C# td TODO comment
C# oo true-false operator overloading
C# tc try-catch
C# tcf try-catch-finally
C# tf try-finally
C# a TypeConverter attribute
C# to typeof operator
C# u using statement
C# us using static directive
C# uv using variable
C# wxn while not null
C# wexn while not null [Obsolete]
C# wn while null
C# wen while null [Obsolete]
C# w while statement
C# we while statement [Obsolete]
C# yb yield break statement
C# yr yield return statement