Code Snippets in C# for NET 2.0

  • Thread starter Thread starter Sanjay Pais
  • Start date Start date
S

Sanjay Pais

Any one played around with snippets should be able to help me :)

I need to Add a custom code Snippet and need the value of the variable
ProcedureName to be set to the name of the class. I know I am being lazy :)

public ovevride void Lock(string str1, string str2){
//set value of procedure name for error handling
ProcedureName="Lock";
try{
//add custom code here
}
catch (Exception exp){
PassOnToLog(ProcedureName, ex);
throw(ex);
}

}

Thanks in advance

Sanjay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top