StackOverflow Questions for Tag: static-constructor

Sarfaraz Nawaz
Sarfaraz Nawaz

Reputation: 361692

What is the rationale for not having static constructor in C++?

Score: 32

Views: 9469

Answers: 6

Read More
George
George

Reputation: 2213

Execution sequence for a module constructor in a web application for VB.NET

Score: 0

Views: 599

Answers: 1

Read More
mark
mark

Reputation: 62876

Roslyn SemanticModel does not contain the static constructor generated for const decimal initialization

Score: 1

Views: 20

Answers: 0

Read More
MNIK
MNIK

Reputation: 1629

unit test static constructor w/ different config values

Score: 5

Views: 3455

Answers: 5

Read More
Gordon Gustafson
Gordon Gustafson

Reputation: 41249

How do you initialize static data members, similar to static constructors?

Score: 195

Views: 196223

Answers: 23

Read More
jameschinnock
jameschinnock

Reputation: 787

Why doesn't the CLR always call value type constructors

Score: 39

Views: 1988

Answers: 8

Read More
Dan Tao
Dan Tao

Reputation: 128407

What's the best way to ensure a base class's static constructor is called?

Score: 40

Views: 14318

Answers: 6

Read More
Praveen Kumar
Praveen Kumar

Reputation: 49

How to initialize static const members of a class which has the same type as the class?

Score: 0

Views: 98

Answers: 2

Read More

C# Static Constructors for Inherited Classes

Score: -1

Views: 64

Answers: 1

Read More
Moe Sisko
Moe Sisko

Reputation: 12051

Ensure library registration code is called only once before use

Score: 0

Views: 31

Answers: 0

Read More
Abel
Abel

Reputation: 57189

What is the earliest entrypoint that the CLR calls before calling any method in an assembly?

Score: 5

Views: 1876

Answers: 3

Read More
Steve Friedl
Steve Friedl

Reputation: 4247

Looking for non-lazy static constructor behavior

Score: 0

Views: 93

Answers: 2

Read More
KDR
KDR

Reputation: 488

static constructor not invoked

Score: 0

Views: 1081

Answers: 3

Read More
Chris
Chris

Reputation: 449

Imitate a static constructor in C++

Score: 5

Views: 3342

Answers: 6

Read More
lonix
lonix

Reputation: 21021

Force static constructor to run multiple times

Score: 0

Views: 214

Answers: 1

Read More
fweaks
fweaks

Reputation: 23

Is there a way to mark a function as only called/callable from a static constructor?

Score: 0

Views: 680

Answers: 2

Read More
Vemulo
Vemulo

Reputation: 404

Why can compiler not optimize out unused static std::string?

Score: 7

Views: 863

Answers: 1

Read More

Static constructor order in inherited generic classes

Score: 1

Views: 352

Answers: 2

Read More
Dr. Rajesh Rolen
Dr. Rajesh Rolen

Reputation: 14285

What is the use of static constructors?

Score: 390

Views: 244312

Answers: 8

Read More
Avi Turner
Avi Turner

Reputation: 10456

Why isn't the static constructor from my base class called?

Score: 12

Views: 10385

Answers: 2

Read More
PreviousPage 1Next