Skip to content

Commit 709c108

Browse files
committed
Update preamble on ECS1300
1 parent 3ba12c2 commit 709c108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docs/rules/ECS1300.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ECS1300: Use Proper Initialization for Static Class Members
22

3+
This rule is described in detail in [Effective C#: 50 Specific Ways to Improve your C#](https://www.oreilly.com/library/view/effective-c-50/9780134579290/).
4+
35
## Cause
46

57
Static fields initialized with complex expressions or method calls that might throw exceptions can cause runtime errors during type initialization. These exceptions occur before any static constructors or error-handling mechanisms can intercept them, potentially crashing the application.

0 commit comments

Comments
 (0)