Framework code snippets (21/207)

How to create and use inline functions

Published: 1. February 2012 | Updated: 1. February 2012
Categories: Framework
Tags: C#

How to exchange two numerical variables without the third var

Published: 31. January 2012 | Updated: 31. January 2012
Categories: Framework
Tags: C#

How to use object initializers

Published: 25. November 2011 | Updated: 25. November 2011
Categories: Framework
Tags: C#

How to use variable number of arguments for method

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Framework
Tags: C#

How to use indexers

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Framework
Tags: C#

How to make internal members visible to another library

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Framework
Tags: C# Testing Visual Studio

How to get predefined colors

Published: 24. October 2011 | Updated: 24. October 2011
Categories: Framework
Tags: C# Colors Winforms WPF

How to validate Guid

Published: 14. October 2011 | Updated: 14. October 2011
Categories: Framework
Tags: C# Validation

How to format number with leading zeros

Published: 14. October 2011 | Updated: 14. October 2011
Categories: Framework
Tags: C# Formatting Text

How to get value from AppSettings in App.config or Web.config

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C# Console Winforms WPF

How to get connection string from App.config or Web.config

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Databases Framework
Tags: C# SQL Winforms WPF

How to create guid from string

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Converting Framework
Tags: C#

How to get command line for process

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C# Console Winforms

How to get .NET version

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C# Windows

How to get random bytes

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C#

How to get random number

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C#

How to rethrow exception

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Framework
Tags: C#

How to create extension method

Published: 26. September 2011 | Updated: 26. September 2011
Categories: Framework
Tags: C#

How to get environment variables

Published: 5. January 2009 | Updated: 5. January 2009
Categories: Framework Windows
Tags: C# Windows

How to use namespace shortcuts

Published: 22. December 2008 | Updated: 22. December 2008
Categories: Framework
Tags: C# Visual Studio

How to use goto statement

Published: 21. December 2008 | Updated: 21. December 2008
Categories: Framework
Tags: C# Visual Studio