StackOverflow Questions for Tag: static-constructor

stackoverflowuser
stackoverflowuser

Reputation: 22380

static readonly field initializer vs static constructor initialization

Score: 51

Views: 17676

Answers: 4

Read More
MrProgram
MrProgram

Reputation: 5242

How to pass parameter to static class constructor?

Score: 47

Views: 70004

Answers: 4

Read More
Javi Langunz
Javi Langunz

Reputation: 1

Does a class or struct have a default static constructor if not explicitly defined with one?

Score: -3

Views: 129

Answers: 1

Read More
Sergey Shevchenko
Sergey Shevchenko

Reputation: 3

Does every type have static constructor?

Score: 0

Views: 124

Answers: 1

Read More
KeepAtIt
KeepAtIt

Reputation: 163

Is it better practice to use static factory methods over an interface implemented by many different objects?

Score: -4

Views: 1401

Answers: 2

Read More
cfischer
cfischer

Reputation: 470

Why can I change a private static readonly field but not a public one?

Score: 3

Views: 5302

Answers: 4

Read More
Strider007
Strider007

Reputation: 4975

Public constructor and static constructor

Score: 18

Views: 12962

Answers: 4

Read More
bwall
bwall

Reputation: 1060

Converting between similar types in an open/closed principle sort of way

Score: 1

Views: 107

Answers: 3

Read More
user11403920
user11403920

Reputation: 13

When does a static member of a class get accessed before the static constructor of the same class

Score: 0

Views: 65

Answers: 1

Read More
RoR
RoR

Reputation: 16502

C# Instance Constructor vs Static Constructor

Score: 6

Views: 9541

Answers: 3

Read More
Luke Needham
Luke Needham

Reputation: 4019

Can we pass arguments to Fragments more beautifully?

Score: 0

Views: 3022

Answers: 2

Read More
Ben Hirschberg
Ben Hirschberg

Reputation: 1500

Cannot add content to "ctors" section with linker

Score: 2

Views: 332

Answers: 0

Read More
mafu
mafu

Reputation: 32710

How can I run a static constructor?

Score: 58

Views: 28117

Answers: 10

Read More
Aren
Aren

Reputation: 55966

Tracking Static Constructor Execution

Score: 7

Views: 7215

Answers: 5

Read More
Bruno Santos
Bruno Santos

Reputation: 735

Static constructor not working for structs

Score: 9

Views: 2874

Answers: 2

Read More
user12426602
user12426602

Reputation:

why Static constructors not called first and i got exception when use declared variable?

Score: 0

Views: 138

Answers: 2

Read More
Enrico Massone
Enrico Massone

Reputation: 7348

Need some clarification about the static constructor VS static field initializer story in C#

Score: 2

Views: 647

Answers: 1

Read More
anders stubberup
anders stubberup

Reputation: 544

Static constructor not called?

Score: 0

Views: 655

Answers: 1

Read More
meetjaydeep
meetjaydeep

Reputation: 1850

Explicitly call static constructor

Score: 44

Views: 28595

Answers: 4

Read More
Deepak Jain
Deepak Jain

Reputation: 109

why the order of static Constructor is coming like this C#?

Score: 0

Views: 46

Answers: 0

Read More
PreviousPage 2Next