Freigeben über


Code Snippets Galore

We have published a whole bunch of code snippets to make your life easier for C# - these are all very cool and I’d recommend installing them if nothing else other then to see how they work…

https://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx

Here is the list (copied off the site):

Application Code Snippets

For working with Isolated Storage, ClickOnce tasks, Console Applications and Process Management.

Collections and Arrays Code Snippets

For tasks like creating, iterating, locating elements, and sorting collections like arrays and dictionaries.

Connectivity Code Snippets

For checking network status, downloading a file via HTTP, performing serial port operations, sending email and more.

Crystal Reports Code Snippets

For common reporting tasks such as printing a Crystal Report, setting report parameters, and configuring report data access.

Database Code Snippets

For performing a variety of common tasks around ADO.NET data access.

Datatypes Code Snippets

For various string conversions, date spanning operations, and other type-focused operations.

File System Code Snippets

For performing a number of tasks around reading, writing, and managing files.

Math Code Snippets

For calculating monthly payments, depreciation, sines, cosines, and random numbers.

Operating System Code Snippets

A large collection of snippets for Event logging, Message Queues, Process management, registry access, windows services, getting system information and more.

Security Code Snippets

For working with hashes, decrypting, encrypting, and getting a user’s name.

Smart Devices Code Snippets

For performing common tasks on Smart Devices.

Windows Forms Code Snippets

For working with the clipboard, fonts, sounds, GDI drawing, and general Windows Form and control creation.

XML Code Snippets

For reading and writing XML, selecting nodes, performing XSL transforms, and other XML oriented tasks.