Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generating partitions Pin
Luc Pattyn6-Jan-10 5:52
sitebuilderLuc Pattyn6-Jan-10 5:52 
GeneralRe: Generating partitions Pin
OriginalGriff6-Jan-10 6:05
mveOriginalGriff6-Jan-10 6:05 
GeneralRe: Generating partitions Pin
ωαη∂εrεr6-Jan-10 19:56
ωαη∂εrεr6-Jan-10 19:56 
QuestionStatic constructor [SOLVED] Pin
mabrahao6-Jan-10 0:42
mabrahao6-Jan-10 0:42 
AnswerRe: Static constructor Pin
Saksida Bojan6-Jan-10 0:54
Saksida Bojan6-Jan-10 0:54 
GeneralRe: Static constructor Pin
OriginalGriff6-Jan-10 1:04
mveOriginalGriff6-Jan-10 1:04 
GeneralRe: Static constructor Pin
Saksida Bojan6-Jan-10 1:07
Saksida Bojan6-Jan-10 1:07 
GeneralRe: Static constructor Pin
mabrahao6-Jan-10 1:05
mabrahao6-Jan-10 1:05 
Ok, static methods and static class was able to figure out how it works, but not the STATIC CONSTRUCTOR, like so:


public class Test
{
int numTest;
// Static Constructor
static Test()
{
numTest = 5;
}
}


i am reading a book from Andrew Troelsen, about C#, and in the book, he gives a example of a static constructor, but i just could not understand...

anyway, thank u for u help

Marcus Abrahão
GeneralRe: Static constructor Pin
Pete O'Hanlon6-Jan-10 1:22
mvePete O'Hanlon6-Jan-10 1:22 
GeneralRe: Static constructor Pin
Saksida Bojan6-Jan-10 1:28
Saksida Bojan6-Jan-10 1:28 
GeneralRe: Static constructor Pin
dojohansen7-Jan-10 4:03
dojohansen7-Jan-10 4:03 
AnswerRe: Static constructor Pin
V.6-Jan-10 1:02
professionalV.6-Jan-10 1:02 
GeneralRe: Static constructor Pin
mabrahao6-Jan-10 1:15
mabrahao6-Jan-10 1:15 
AnswerRe: Static constructor Pin
OriginalGriff6-Jan-10 1:07
mveOriginalGriff6-Jan-10 1:07 
GeneralRe: Static constructor Pin
mabrahao6-Jan-10 1:11
mabrahao6-Jan-10 1:11 
QuestionProblem in memory usage in .net Pin
Kim06186-Jan-10 0:11
Kim06186-Jan-10 0:11 
AnswerRe: Problem in memory usage in .net PinPopular
Harvey Saayman6-Jan-10 0:40
Harvey Saayman6-Jan-10 0:40 
GeneralRe: Problem in memory usage in .net Pin
Rob Philpott6-Jan-10 3:12
Rob Philpott6-Jan-10 3:12 
AnswerRe: Problem in memory usage in .net Pin
Dave Kreskowiak6-Jan-10 3:22
mveDave Kreskowiak6-Jan-10 3:22 
AnswerRe: Problem in memory usage in .net Pin
Luc Pattyn6-Jan-10 3:30
sitebuilderLuc Pattyn6-Jan-10 3:30 
GeneralRe: Problem in memory usage in .net Pin
Kim06186-Jan-10 6:02
Kim06186-Jan-10 6:02 
GeneralRe: Problem in memory usage in .net Pin
Luc Pattyn6-Jan-10 6:30
sitebuilderLuc Pattyn6-Jan-10 6:30 
QuestionProblem with insert query Pin
<<Tash18>>6-Jan-10 0:10
<<Tash18>>6-Jan-10 0:10 
AnswerRe: Problem with insert query Pin
SeMartens6-Jan-10 0:22
SeMartens6-Jan-10 0:22 
GeneralRe: Problem with insert query Pin
<<Tash18>>6-Jan-10 0:23
<<Tash18>>6-Jan-10 0:23 

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.