Please enable JavaScript.
Coggle requires JavaScript to display documents.
BASICS_2 - Coggle Diagram
BASICS_2
DEBUG
Steps
Put-Breakpoints
Run-InDebug
Continue-Exec
Inspect-Vars
Shortcuts
Un/Set-Breakpoint
F9
Run
Normal
Ctrl+F5
Debug
F5
Stop
Shift+F5
Step
Over
F10
In
F11
Out
Shift+F11
Window
Watch
Watch>Watch 1
Call-stack
Funcs-Called
Locals/Auto
Debug>Windows
SideEffect
Unexpected
Change
State/Var
DefensiveProg
Prevent
WrongState
Check
Input
BeforeProcess
EdgeCases
Cover
FILES
Using
System.IO
File
FileInfo
InstncMthds
OpenRead
StaticMthds
SecCheckByOs
EveryTime
Methods
Create
Copy
Delete
Move
Exists
GetAttributes
ReadAllText
Directory
DirecInfo
StaticMthds
CreateDir
Delete
Move
Exists
Get<>
Files([filter])
Directories([filter])
CurrentDir
LogcialDrives
[filter]
".jpg"
SearchOption.AllDirs
Path
For
StrManipulation
Methods
GetDirName
GetFileName
GetExtension
GetTempPath
User'sTemp
CONTROL-FLOW
Conditional
if {} else if{}
switch(var){...}
case val: ..;break;
default: ..;break;
Ternary
a ? b:c;
Loops
for
foreach
var x
in valList
while
do-while
Random
randomObj.Next()
Next([minVal, ] maxVal)
DATES
DateTime
StaticAttr
Now
.Hour
.Minute
Today
Adding
.Add<>(val)
Hour
Month
Use -Ve
To-Subtract
Convert
ToString([frmt])
Default
dd/mm/yyyy
hh:mm::ss am
ToLong
DateString
Saturday, 23 May 2015
TimeString
09:33:12 AM
ToShort
DateString
23/05/2015
TimeString
09:33 AM
TimeSpan
Creating
new TimeSpan(1,2,3)
TimeSpan.From<>(val)
Hours
Minutes
dtObj1-dtObj2
Properties
tsObj.Minute
MinuteComponent
tsObj.TotalMinutes
SumInMinutes
Add
tsObj.Add(tsObj2)
tObj.Subtract(tsObj2)
Convert
tsObj.ToString()
TimeSpan.Parse(str)
Are
Structs
Immutables
ARRAYS-LISTS
Lists
Dynamic
Types
new List<int>()
new List<int> {1,2}
Methods
Add()
AddRange()
Remove()
RemoveAt()
IndexOf()
item
[startIdx]
[count]
Contains()
Count
Arrays
Fixed
Types
Multidimension
Rectangular
new int[3, 5]
Jagged
new int[x][ ]
Static
IndexOf
Clear
array
startIndex
length
Copy
fromArr
toArr
length
Sort
Reverse
TEXT
Strings
Immutable
Methods
Format
ToLower/Upper
Trim
Search
IndexOf
LastIndexOf
Substring(..)
startIdx
[length]
Replace(..)
oldVal
newVal
NullCheck
String.
IsNullOrEmpty(str)
IsNullOrWhiteSpace(str)
Split(char)
Convert
StrToNum
int.Parse
ErrorOnNull
Convert.ToInt32
DefaultOnNull
NumToStr
intVar.ToString(..)
[format]
C
Currency
D
Decimal
StringBuilder
Mutable
Easy
Fast
No-Search
builder[x]
IndexAccess
Using
System.Text
Methods
Append
Insert
Remove
Replace
Clear
Return
BuilderObj