Dotnetperls.com Page

DotNetPerls.com



Return to C Sharp | C#, dot NET, C Sharp dot NET | C# .NET, C Sharp dot NET Bibliography | C# .NET Bibliography, C Sharp dot NET Courses | C# .NET Courses, C Sharp dot NET Glossary | C# .NET Glossary, Awesome C Sharp, C Sharp dot NET GitHub, C Sharp dot NET Topics, C Sharp dot NET IDEs | C# .NET IDEs

* https://dotnetperls.com - DotNetPerls

Dot Net Perls is an amazing collection of tested C Sharp code examples | C# code examples. Pages are continually updated to stay current, with code correctness a top priority. It is developed by Sam Allen since 2007. Sam is passionate about computer languages. In the past, his work has been recommended by Apple and Microsoft and he has studied computers at a selective university in the United States.

Sam has also added numerous Java, Scala, Golang, Python (e.g. https://dotnetperls.com/file-python), Ruby, Rust examples. He has example pages for many languages, with explanations and code side by side for easy understanding.

Stay up-to-date with Sam's Changelog: https://dotnetperls.com/changelog


Examples include:

C#



* C Sharp Array
* C Sharp List
* C Sharp 2D Array
* C Sharp async - https://dotnetperls.com/async
* C Sharp await
* C Sharp Console
* C Sharp Console.WriteLine
* C Sharp Convert
* C Sharp DataTable
* C Sharp DateTime
* C Sharp Dictionary
* C Sharp Enum
* C Sharp For
* C Sharp Foreach
* C Sharp IEnumerable
* C Sharp If
* C Sharp IndexOf
* C Sharp int.Parse
* C Sharp Join
* C Sharp KeyValuePair
* C Sharp Keywords
* C Sharp Lambda
* C Sharp Path
** C Sharp Path.GetFileName
* C Sharp Process
* C Sharp Property
* C Sharp Random
* C Sharp Regex
* C Sharp Replace
* C Sharp Sort
* C Sharp Split
* C Sharp String
** C Sharp string.Format
* C Sharp Substring
* C Sharp Switch
* C Sharp Tuple
* C Sharp While


----

* C Sharp

* 24-Hour Time Formats
* 2D Array
* 7-Zip Executable
* Abstract
* Action
* Aggregate
* AggressiveInlining
* All
* Alphabetize String
* Alphanumeric Sort
* Anagram
* And
* Any
* StringBuilder Append
* AppendFormat
* ArgumentException
* Array
* Array.AsReadOnly
* Array.BinarySearch
* Array.Clear
* Array.ConvertAll
* Array.Copy
* Array.CreateInstance
* Array.Exists
* Array Find
* Array.ForEach
* Array.IndexOf, Array.LastIndexOf
* Array Length
* Array Memory
* Array Property
* Array.Resize
* Array.Reverse
* Array Slice
* Array.Sort
* Array.TrueForAll
* ArrayList
* ArrayPool
* ArraySegment
* ArrayTypeMismatch Exception
* As
* ASCII Table
* ASCII Transformation
* AsEnumerable
* AsParallel
* async
* Attribute
* Average


B



* BackgroundWorker
* Base
* Console.Beep
* Benchmark
* Between, Before, After
* BigInteger
* Binary Representation
* BinaryReader
* BinarySearch List
* BinaryWriter
* BitArray
* BitConverter
* Bitcounts
* BitVector32
* bool
* bool Array
* bool.Parse
* Bool Method
* bool Sort
* Break
* Buffer
* BufferedStream
* Button
* byte
* Byte Array


C



* Caesar Cipher
* Capacity
* Case
* Case, Dictionary
* Casts
* Cast
* Cast, Int
* Catch
* Change
* Change Characters
* Char
* Char Array
* Char Combine
* char.IsDigit
* Char Test
* char.ToLower
* Character Literal
* CharEnumerator
* Chart
* CheckBox
* Checked
* CheckedListBox
* class
* Dictionary Clear
* Clone
* Color
* Color Table
* ColorDialog
* Combine Arrays
* Combine Dictionary Keys
* ComboBox
* Comment
* Common Elements, List
* CompareTo
* Comparison
* Bitwise Complement
* Compound Interest
* Compress Data
* Concat
* ConcurrentBag
* ConcurrentDictionary
* ConcurrentQueue
* Conditional
* Console
* Console Colors
* Console.Read
* Console.ReadKey
* Console.ReadLine
* Console.SetOut
* Console.Write
* const
* Constructor
* Contains
* Contains
* ContainsKey
* ContainsValue
* Continue
* Control
* Convert ArrayList, Array
* Convert ArrayList, List
* Convert Bool, Int
* Convert Bytes, Megabytes
* Convert Char Array, String
* Convert Char, String
* Convert Days, Months
* Convert Degrees
* Convert Dictionary, List
* Convert Dictionary, String
* Convert List, Array
* Convert List, DataTable
* Convert List, String
* Convert Miles, Kilometers
* Convert Milliseconds
* Convert Nanoseconds
* Convert Array, String
* Convert String, Byte Array
* Convert TimeSpan, Long
* Copy Dictionary
* Cos, Sin, Tan
* Count
* Count Array Elements
* Count Characters
* Count Dictionary
* Letter Frequencies
* CSV Files
* Customized Dialog Box


D


* DataColumn
* DataGridView
* DataGridView Add Rows
* DataGridView
* DataRow
* DataRow Field
* DataSet
* DataSource
* DataTable
* DataTable Compare Rows
* DataTable foreach
* DataTable RowChanged
* DataTable Select
* DataView
* DateTime
* DateTime Format
* DateTime.MinValue
* DateTime.Month
* DateTime.Now
* DateTime.Parse
* DateTime Subtract
* DateTime.Today
* DateTime.TryParse
* DateTimePicker
* DayOfWeek
* Debug.Write
* decimal
* Decompress GZIP
* Default
* DefaultIfEmpty
* define, undef
* Delegates
* Descending
* Destructor
* DialogResult
* Dictionary
* Dictionary Binary File
* Dictionary Equals
* DictionaryEntry
* Directives
* Directory
* CreateDirectory
* Directory.GetFiles
* Directory Size
* Distinct
* Divide
* Divide, Powers of Two
* DivideByZeroException
* DllImport, Dllexport
* Dns
* Do
* DomainUpDown
* Double
* DriveInfo
* Duplicate Chars
* Duplicate Words
* Duplicates
* Dynamic


E


* [[ElementAtOrDefault
Enum
Enum Array
Enum Flags
Enum.Format
Enum.GetName
Enum.Parse
Enum ToString
Range, Repeat, Empty
Environment
Event
EventLog
Every Nth Element
Excel
Except
Exception
Explicit, Implicit
Extension
Extern


F


* [[Factory Pattern
Convert Feet, Inches
Fibonacci Sequence
File
File.Copy
File.Delete
File Equals
File.Exists
File.Move
File.Open
File.ReadAllBytes
File.ReadAllLines
File.ReadAllText
File.ReadLines
File.Replace
FileInfo
FileInfo Length
Filename, DateTime
FileNotFoundException
FileStream
FileSystemWatcher
Finally
First
First Words
FirstOrDefault
Fisher-Yates Shuffle
Fixed
Flatten Array
Float
FolderBrowserDialog
Font
FontDialog
For
Foreach
Foreach List
Form
string.Format
FromOADate
Func]]


G


* [[GC.Collect
Generic Class, Method
Path.GetDirectoryName
GetEnumerator
GetHashCode
GetType
Global Variable
Goto
group
GroupBy
GroupJoin
Guid
GZipStream]]


H


* [[HashMap
HashSet
Hashtable
HtmlEncode, HtmlDecode
HtmlTextWriter
HttpClient
HttpUtility
HybridDictionary


I



IComparable
IDictionary
IEnumerable
IEqualityComparer
If
If, Elif, Endif
If vs. Switch
IL
IList
Image
ImageList
Increment
Increment String Number
Indexer
IndexOf
IndexOfAny
IndexOutOfRangeException
Initialize Array
Initialize List
InitializeComponent
Insert
Int, uint
Int Array
int.MaxValue
Int16, Int32, Int64
Integer Digit Count
Interface
Interlocked
Intersect
InvalidCastException
InvalidOperation Exception
IOException
IOrderedEnumerable
Is
IsFixedSize
IsNullOrEmpty
IsSorted
Jagged Arrays
Join
Json
KeyCode
KeyNotFoundException
KeyValuePair
Label
Lambda
LastIndexOf
Last, LastOrDefault
Lazy
let
Levenshtein
Line Directive
Line Count
LinkedList
LinkLabel
List
List Add
AddRange, InsertRange
List Clear
List Contains
List CopyTo
List Equals
List Find, Exists
List Insert
List Remove
ListBox
ListDictionary
ListView
Lock
Math.Log, Log10
Long
Loop Over String Chars
Loop, String Array
Main args
Map
MaskedTextBox
Math
Math.Abs
Math.Ceiling
Math.E
Math.Floor
Math.Max, Min
Math.Pow
Math.Round
Math.Truncate
Max, Min
Maze
Memoization
MemoryFailPoint
MemoryMappedFile
MemoryStream
MenuStrip
MessageBox
Modulo
MonthCalendar
Multidimensional Array
MultiMap
Multiple Locals
Multiple Return Values
Multiply
Mutex
Named Parameters
namespace
NameValueCollection
Nested List
new
Environment.NewLine
Normalize
NotifyIcon
NotImplementedException
Null
Null Array
Null Coalescing
Null List
Null Strings
Nullable
NullReferenceException
Number Words
Object
Object Array
object.ReferenceEquals
Obsolete
OdbcConnection
Odd, Even
OfType
OpenFileDialog
Operator
Optional Parameters
Bitwise Or
orderby
OrderBy, OrderByDescending
Out
OutOfMemoryException
OverflowException
Overload
Override
PadRight, PadLeft
Palindrome
Paragraph HTML
Parallel.For
Parallel.Invoke
Parameters
Params
int.Parse
partial
Path
Path.ChangeExtension
Path Exists
Path.GetExtension
Path.GetRandomFileName
Percentage
Math.PI
PictureBox
Ping
PNG, WEBP
Point, PointF
Position Windows
Pragma Directive
Predicate
Pretty Date
PreviewKeyDown
Prime Number
Process
ProgressBar
Property
PropertyGrid
Protected, internal
Protection Proxy
Public, private
Remove Punctuation
Queryable
Queue
RadioButton
Random
Random Lowercase Letter
Random Paragraphs
Random String
ReadLine, ReadLineAsync
Readonly
ReadOnlyCollection
record
Recursion
Recursive File List
Ref
Reflection
Regex
Regex.Escape
Regex File
Regex Groups
Regex.Matches
Regex.Matches, Quote
Regex.Replace
Regex.Replace String End
Regex.Replace Numbers
Regex.Replace Spaces
Regex.Split
Regex.Split Numbers
Regex Trim
RegexOptions.Compiled
RegexOptions.IgnoreCase
RegexOptions.Multiline
region, endregion
Remove
Remove Char
Remove Element
Remove HTML Tags
RemoveAll
Replace
Reserved Filenames
Return
Reverse
Reverse String
Reverse Words
RichTextBox
String Right
RNGCryptoServiceProvider
ROT13
SaveFileDialog
Scraping HTML Links
Sealed
Seek
Select
Select Case
Select New
SelectMany
SequenceEqual
Serialize List
Set Bit
Settings.settings
Shift
short, ushort
Shuffle Array
Single, Double
SingleOrDefault
Size
sizeof
Skip, SkipWhile
Sleep
Snippets
Sort
Sort DateTime List
Sort Dictionary
Sort Files, Sizes
Sort Ignore Lead Chars
Sort KeyValuePair List
Sort List
Sort Number Strings
Sort Strings, Length
SortedDictionary
SortedList
SortedSet
Span
SpinWait
Split
SqlClient
SqlCommand
SqlCommandBuilder
SqlConnection
SqlDataAdapter
SqlDataReader
SqlParameter
Math.Sqrt
Stack
stackalloc
StackOverflowException
StartsWith, EndsWith
Static
Static Array
Static Dictionary
Static List
Static Regex
Static String
StatusStrip
Stopwatch
Stream
StreamReader
StreamReader ReadToEnd
StreamReader ReadToEndAsync
StreamWriter
String Append
String Chars
Compare, CompareTo
string.Concat
String Constructor
string.Copy
CopyTo
Empty String
String Equals
String For-Loop
string.Intern
String Interpolation
IsUpper, IsLower
Join
String Length
String List
String Literal
String Occurrence Count
String Slice
String Switch
StringBuilder
StringBuilder Equals
StringBuilder ToString
StringComparison, StringComparer
StringDictionary
StringReader
StringWriter
struct
Substring
Suffix
Sum
Swap
Switch
Switch Char
Switch Enum
Using System
Tag
Take, TakeWhile
Task
Ternary Operator
Text
TextBox
TextBox.AppendText
TextChanged
TextFieldParser
TextInfo
TextReader
TextWriter
This
Thread Join
ThreadPool
ThreadStart
throw
Timer
TimeSpan
TimeZone
Title HTML
ToArray
ToBase64String
ToCharArray
ToDictionary
TODO Comments
Token
ToList
ToLookup
ToLower
ToolTip
ToString
ToTitleCase
TrackBar
Tree
TreeView
Trim
TrimEnd, TrimStart
true
Truncate String
Try
TryGetValue
Tuple
Type
TypeInitialization Exception
typeof
Union
Unreachable
Unsafe
Uppercase First Letter
Uri
using
using Alias
Value
ValueTuple
ValueType
Var
Variable Initializer
Virtual
Void
volatile
WeakReference
WebBrowser
WebClient
Where
While
Whitespace
Word
Word Count
XElement
XmlReader
XmlTextReader
XmlTextWriter
XmlWriter
XOR
Yield
Zip
ZipFile


https://dotnetperls.com/s#c#


Golang


* Golang map
* Golang Slice
* Golang switch
* Golang Time: Now, Parse and Duration
* Golang Substring
* Golang File Handling
* Golang Sort Slice
* Golang const, iota Keywords
* Golang fmt.Printf, Println
* Golang JSON ]: Marshal, Unmarshal
* Golang Split (SplitAfter, SplitN)
* Golang Func
* Golang for Loop
* Golang Compress GZIP
* Golang Remove Duplicates From Slice
* Golang Replace String
* Golang recover, Golang panic, Golang defer
* Golang Regexp: Golang MatchString, Golang MustCompile
* Golang Struct
* Golang Array
* Golang ParseInt: Golang Convert String to Int
* Golang Index, Golang LastIndex: Golang strings, Golang Funcs
* Golang If, Golang Else (Golang If Map)
* Golang bits, Golang OnesCount] ([[Golang Get Bitcount From Int)
* Golang csv
* Golang os.Open, Golang os.Chmod File
* Golang os exec: Golang Command Start and Run
* Golang Trim, Golang TrimSpace and Golang TrimFunc
* Golang strings.Builder
* Golang Len (Golang String Length)
* Golang container list (Golang Linked List)
* Golang 2D Slices and Golang Arrays
* Golang rand, Golang crypto: Golang Random Number Generators
* Golang Math Module: Golang math.Abs, Golang Pow
* Golang Suffixarray
* Golang flag
* Golang Bytes: Golang Slices and Golang Methods
* Golang ReadDir
* Golang ListenAndServe (Golang HandleFunc)
* Golang path and Golang filepath


Fair Use Sources


Fair Use Sources:
* DotNetPerls.com -

{{navbar_csharp}}

{{navbar_footer}}