Create Visual Studio Extension to help me with my library

  • Thread starter Thread starter BloodfallenTear
  • Start date Start date
B

BloodfallenTear

Guest
Hello!

I'm creating a library in C#, and there's a lot of repetition that's going on so I was wondering if it was possible to create an extension/tool which could help me automate it instead of me having to do all the work manually?

Example:

String X;
String Y;
String Z;
Int32 SomeNumber;

I wish to be able and create a tool where if I e.g right-clicked on X, I'd give me the option to automatically create something like this:

internal String _X { get; set; }
internal String _Y { get; set; }
internal String _Z { get; set; }
internal Int32 _SomeNumber { get; set; }

public String X => _X;
public String Y => _Y;
public String Z => _Z;
public Int32 SomeNumber => _SomeNumber;
Is it possible? If so, what could I search for to get started on such a extension/tool? Thank you in advance.

Continue reading...
 
Back
Top