Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: equalent c++ operator in c# Pin
Guffa6-Jan-09 19:02
Guffa6-Jan-09 19:02 
GeneralRe: equalent c++ operator in c# Pin
lawrenceinba6-Jan-09 20:27
lawrenceinba6-Jan-09 20:27 
Generalbook Pin
Luc Pattyn6-Jan-09 23:24
sitebuilderLuc Pattyn6-Jan-09 23:24 
GeneralRe: book Pin
lawrenceinba6-Jan-09 23:45
lawrenceinba6-Jan-09 23:45 
QuestionC# - Static classes Pin
DineshSharmain6-Jan-09 18:08
DineshSharmain6-Jan-09 18:08 
AnswerRe: C# - Static classes Pin
Guffa6-Jan-09 18:45
Guffa6-Jan-09 18:45 
AnswerRe: C# - Static classes Pin
«_Superman_»6-Jan-09 19:00
professional«_Superman_»6-Jan-09 19:00 
AnswerRe: C# - Static classes Pin
N a v a n e e t h6-Jan-09 19:08
N a v a n e e t h6-Jan-09 19:08 
DineshSharmain wrote:
no. of users are accessing one static method of static class.....that performs any operation like data insertion, update, deletion and fetching from database.....


There is no harm in using it when the static method is not using any shared variables. See the following code
public static class Foo
{
   public static void FooMethod(string a,string b){
      ....
   }
}
In the above example, FooMethod is safe as it is not using any shared objects. Whenever you use FooMethod, you will have separate copy of variable a and b.
public static class Foo
{
   private static string FooVariable = "";
   public static void FooMethod(){
        // use FooVariable here
   }
}
Above given code is not safe as static variable(FooVariable) is shared across multiple threads. Read about thread synchronization techniques.


AnswerRe: C# - Static classes Pin
DineshSharmain6-Jan-09 19:50
DineshSharmain6-Jan-09 19:50 
GeneralRe: C# - Static classes Pin
N a v a n e e t h6-Jan-09 20:06
N a v a n e e t h6-Jan-09 20:06 
GeneralRe: C# - Static classes [modified] Pin
DineshSharmain6-Jan-09 20:42
DineshSharmain6-Jan-09 20:42 
GeneralRe: C# - Static classes Pin
N a v a n e e t h6-Jan-09 20:53
N a v a n e e t h6-Jan-09 20:53 
QuestionExtract All text values Pin
belzer6-Jan-09 15:51
belzer6-Jan-09 15:51 
AnswerRe: Extract All text values Pin
Not Active6-Jan-09 15:54
mentorNot Active6-Jan-09 15:54 
AnswerRe: Extract All text values Pin
N a v a n e e t h6-Jan-09 16:11
N a v a n e e t h6-Jan-09 16:11 
AnswerRe: Extract All text values Pin
dan!sh 6-Jan-09 16:42
professional dan!sh 6-Jan-09 16:42 
AnswerRe: Extract All text values Pin
0x3c06-Jan-09 20:10
0x3c06-Jan-09 20:10 
QuestionAdding resource at runtime Pin
Xmen Real 6-Jan-09 15:00
professional Xmen Real 6-Jan-09 15:00 
AnswerRe: Adding resource at runtime Pin
N a v a n e e t h6-Jan-09 15:23
N a v a n e e t h6-Jan-09 15:23 
GeneralRe: Adding resource at runtime Pin
Xmen Real 6-Jan-09 15:26
professional Xmen Real 6-Jan-09 15:26 
GeneralRe: Adding resource at runtime Pin
N a v a n e e t h6-Jan-09 15:40
N a v a n e e t h6-Jan-09 15:40 
GeneralRe: Adding resource at runtime Pin
Xmen Real 6-Jan-09 15:43
professional Xmen Real 6-Jan-09 15:43 
AnswerRe: Adding resource at runtime Pin
Jon Rista6-Jan-09 15:45
Jon Rista6-Jan-09 15:45 
QuestionCaching Pin
CrimeanTurtle20086-Jan-09 11:41
CrimeanTurtle20086-Jan-09 11:41 
AnswerRe: Caching Pin
Guffa6-Jan-09 11:57
Guffa6-Jan-09 11:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.