Click here to Skip to main content
15,926,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to send a file by SMTP or POP3 Pin
kkun15-Oct-07 23:17
kkun15-Oct-07 23:17 
Questionhow does wrapper class works? Pin
cyn815-Oct-07 21:56
cyn815-Oct-07 21:56 
AnswerRe: how does wrapper class works? Pin
Chaitanya Joshi15-Oct-07 22:15
Chaitanya Joshi15-Oct-07 22:15 
AnswerRe: how does wrapper class works? Pin
Christian Graus15-Oct-07 22:30
protectorChristian Graus15-Oct-07 22:30 
AnswerRe: how does wrapper class works? Pin
il_masacratore15-Oct-07 22:43
il_masacratore15-Oct-07 22:43 
Questionstatic function or variable Pin
Sonia Gupta15-Oct-07 21:36
Sonia Gupta15-Oct-07 21:36 
AnswerRe: static function or variable Pin
Giorgi Dalakishvili15-Oct-07 21:44
mentorGiorgi Dalakishvili15-Oct-07 21:44 
AnswerRe: static function or variable Pin
Andrei Ungureanu15-Oct-07 21:44
Andrei Ungureanu15-Oct-07 21:44 
If you have a static function or variable you do not need to create an object to have access to that function/variable
class X
{
 public string nonStatic = "hh";
 public static string staticVariable = "xx";

 public void NonStaticFunction()
 {
  .. 
 }

 public static void StaticFunction()
 {
  ... 
 }
}


To have access to nonStatic variable and NonStaticFunction you have to write something like this
X obj = new X();
obj.nonStatic; //get the nonstatic variable
obj.NonStaticFunction(); //call the nonstatic function


To access the static variable and function you have to write code like this
X.staticVariable; //you call the static variable using the class name; no object required
X.StaticFunction; //call the static function


Hope it helps.

There are 10 kinds of people: those who understand binary and those who don't

GeneralRe: static function or variable Pin
Sonia Gupta15-Oct-07 21:50
Sonia Gupta15-Oct-07 21:50 
Questioncomparing databases and update Pin
Narayana Ayyagari15-Oct-07 21:35
Narayana Ayyagari15-Oct-07 21:35 
AnswerRe: comparing databases and update Pin
leppie16-Oct-07 2:40
leppie16-Oct-07 2:40 
Questionsimple question Pin
Trustapple15-Oct-07 21:34
Trustapple15-Oct-07 21:34 
AnswerRe: simple question Pin
Andrei Ungureanu15-Oct-07 21:39
Andrei Ungureanu15-Oct-07 21:39 
AnswerRe: simple question Pin
Sandeep Kumar16-Oct-07 0:48
Sandeep Kumar16-Oct-07 0:48 
QuestionMAPI Programming Pin
M. J. Jaya Chitra15-Oct-07 21:29
M. J. Jaya Chitra15-Oct-07 21:29 
AnswerRe: MAPI Programming Pin
Andrei Ungureanu15-Oct-07 21:35
Andrei Ungureanu15-Oct-07 21:35 
QuestionI need help Pin
Ehsan_MF15-Oct-07 21:16
Ehsan_MF15-Oct-07 21:16 
AnswerRe: I need help Pin
Nissim Salomon15-Oct-07 22:21
Nissim Salomon15-Oct-07 22:21 
AnswerRe: I need help Pin
Guffa15-Oct-07 22:35
Guffa15-Oct-07 22:35 
QuestionUnable to open comport3 Pin
Srinu.D15-Oct-07 21:15
Srinu.D15-Oct-07 21:15 
QuestionAccessing Excel Files using C# Pin
anu91415-Oct-07 21:04
anu91415-Oct-07 21:04 
AnswerRe: Accessing Excel Files using C# Pin
Andrei Ungureanu15-Oct-07 21:09
Andrei Ungureanu15-Oct-07 21:09 
GeneralRe: Accessing Excel Files using C# Pin
anu91416-Oct-07 4:30
anu91416-Oct-07 4:30 
QuestionThe name port does not exit in current context. Pin
Srinu.D15-Oct-07 20:55
Srinu.D15-Oct-07 20:55 
AnswerRe: The name port does not exit in current context. Pin
Guffa15-Oct-07 21:00
Guffa15-Oct-07 21:00 

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.