mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 14:48:01 -08:00
Compare commits
5 Commits
e50701f709
...
0f38986d31
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f38986d31 | ||
|
|
2aee46f169 | ||
|
|
22977d5ca1 | ||
|
|
a2c99c9674 | ||
|
|
3e3d42023b |
@@ -398,3 +398,17 @@ CHEATSHEET C#
|
|||||||
KeyPress KeyPressEventHandler(object sender, KeyPressEventArgs e)
|
KeyPress KeyPressEventHandler(object sender, KeyPressEventArgs e)
|
||||||
|
|
||||||
|
|
||||||
|
16. Garbage Collection
|
||||||
|
|
||||||
|
16.1 Using statements
|
||||||
|
//A using statement encapsulates the lifetime of an IDisposable object and auto manages memory
|
||||||
|
|
||||||
|
using(SomeManagedClass smc){
|
||||||
|
|
||||||
|
//Scope of SomeManagedClass
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//Garbage collection happens here and the CLR disposes the object
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ for(dataType item : array) {
|
|||||||
|
|
||||||
### ACCESS MODIFIERS
|
### ACCESS MODIFIERS
|
||||||
|
|
||||||
1. defualt(No keyword required)
|
1. default(No keyword required)
|
||||||
2. private
|
2. private
|
||||||
3. public
|
3. public
|
||||||
4. protected
|
4. protected
|
||||||
|
|||||||
Reference in New Issue
Block a user