We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfac77e + 435f8ca commit d121dddCopy full SHA for d121ddd
snippets/csharp.json
@@ -354,6 +354,25 @@
354
],
355
"description": "An automatically implemented property. C# 3.0 or higher"
356
},
357
+ "propex": {
358
+ "prefix": "propex",
359
+ "body": [
360
+ "public ${1:int} ${2:MyProperty} => ${3:myVar};$0"
361
+ ],
362
+ "description": "An expression-bodied property without a backing field. C# 6.0 or higher"
363
+ },
364
+ "propexfull": {
365
+ "prefix": "propexfull",
366
367
+ "private ${1:int} ${2:myVar};",
368
+ "public ${1:int} ${3:MyProperty}",
369
+ "{",
370
+ "\tget => ${2:myVar};",
371
+ "\tset => ${2:myVar} = value;",
372
+ "}$0"
373
374
+ "description": "An expression-bodied property with a private field. C# 6.0 or higher"
375
376
"sim": {
377
"prefix": "sim",
378
"body": [
0 commit comments