CSharpDotNet.com
Home
Welcome to CSharpDotNet.com
Simple and easy to use C# .net code examples.
Find below all our articles added every day.
C# LINQ Aggregation Methods
–
Sum
,
Max
,
Min
,
Count
,
LongCount
,
Average
,
Aggregate
C# List
– illustrative examples of all List<T> methods
C# Using Statement Examples
– using statement and IDisposable
C# Switch Examples
– switch statement examples
C# Foreach Examples
– how foreach and IEnumerable works
C# Read Text File
– how to read lines from text file
C# Reverse Bytes (Little/Big Endian)
– how to reverse byte order
C# InputBox With Value Validation
– simple InputBox class
C# Open File With Associated Application
– launch default application
C# InputBox
– simple static method to show InputBox in C#
C# Reflection Examples
– how to use dynamically loaded assembly
C# Combine Multiple PrintDocuments
– join two PrintDocuments into one
C# Start, Stop and Restart Windows Service
– how to restart a service
C# Create Windows Service in Visual Studio
– create service in VS 2005
C# Get List of Windows Services
– list of installed services
C# Install / Uninstall .NET Windows Service
– how to install .NET services
C# Check Local IP Address
– check whether an IP is local
C# Topmost Form at Application Level
– don't overlap other applications
C# String Format for DateTime
– format date and time
C# DataView RowFilter Syntax
– DataView.RowFilter expression
C# Set DoubleBuffered Property
– set Control's protected property
C# Culture Names
– get all culture names in .NET Framework
C# IFormatProvider for Numbers
– format and parse float numbers
C# Read-only Wrapper for a Collection
– property with readonly collection
C# Separator Line on Form
– how to simulate a bevel line on form
C# Select XML Nodes by Attribute Value
– get xml nodes by attribute
C# String To Enum Conversion
– how to convert string to enum value
C# String Format for Double
– format float numbers
C# String Format for Int
– format (align) integer numbers
C# Socket Send and Receive
– send and receive TCP/IP data using sockets
C# FileStream Open File
– how to open file using file stream
C# FileStream Read File
– how to safely read file stream
C# Sorting Arrays
– how to easily sort arrays of custom type
C# File Attributes
– how to get or set file attributes
C# Get File Time
– how to get last modification time of a file
C# Select XML Nodes by Name
– how to get xml nodes using XPath expressions
C# Select Top XML Nodes using XPath
– how to select only first N xml nodes
C# Download Files from Web
– how to download files from url to local disk
C# Delete All Files
– how to delete files from the specified directory
C# Get Files from Directory
– how to get files from directory
C# Load Text File to String
– how to load text from file to string
C# Hourglass Wait Cursor
– how to change mouse cursor to hourglass
C# Align String with Spaces
– how to align text to the right or left
C# Indent String with Spaces
– how to indent text with repeated spaces
C# Get Application Directory
– how to get application or assembly folder
C# Get Method Names using Reflection
– get names of methods of any class
C# Get Property Names using Reflection
– get property names of any class
C# Get Calling Method using Reflection
– how to get name of calling method
C# Get Call Stack
– how to write method names from call stack
C# Create New Thread
– how to create thread in .NET