Please enable JavaScript.
Coggle requires JavaScript to display documents.
ADVANCED_2 - Coggle Diagram
ADVANCED_2
EXCEPTION
ObjProps
Message
StackTrace
Methods
Sequence
Data
HelpLink
Source
AssemblyName
TargetSite
Method-Caused
InnerException
Wrapped
Exception
Multi-Catch
SpecificTo
Generic
Finally
IDisposable
Consumer
Unmanged
Resource
ImplementBy
CleanUp
Unmanaged
Resources
FileHandles
Connection
DB
Network
Using (..)
var streamReader =
new StreamReader(..)
{..}
CustomClass
Extends
Exception
Ctor
Args
Exception
innerException
string message
: base(..)
msg
innerExp
Handling
NULLABLE
Types
Using
Nullable<DateTime> date
DateTime? date
Members
GetValueOrDefault()
HasValue
Value
TypeChange
NonNull->Nullable
dateVar = date
Nullable->NonNull
dateVar =
date.GetValueOrDefault()
Null-Coalescing
Operator
dateVar =
date ?? DateTime.Today
ASYNC-AWAIT
Approaches
Old
Multi-threading
Callbacks
Net-4.5
TaskBased
Async
Writing
public async
Task DoSomeAsync(...)
{...}
await otherTaskAsync();
Return
void
Task
SomeVal
Task<type>
Await
Used
AsyncMethod
Only-In
Later
Awaiting
var someTask
= DoAsync();
showMsg("Doing..");
var result =
await someTask;
LINQ