BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Next >> |
Convert String Arrays to Comma-Separated StringsConvert String Arrays to Comma-Separated Strings
Integrating with legacy systems often includes sending lists of string values in a comma-separated format. If you are holding the values in an array of strings, you can use a method of the String class to automatically generate the delimited list.
Convert Comma-Separated Strings to String ArraysConvert Comma-Separated Strings to String Arrays
Integrating with legacy systems often includes receiving comma-separated lists of string values. To process these values, you may want to convert the comma-separated information to a simple array containing one element for each of the items.
C# EventsC# Events
The fifteenth part of the C# Object-Oriented Programming tutorial explains the use of events. Events can be added to a class to allow it to indicate when a specific action has occurred or is about to occur. Subscribers may then react to the event.
Using Foreach with an EnumerationUsing Foreach with an Enumeration
The Enum base class does not support the IEnumerable interface, preventing you from directly iterating through the values defined in an enumeration using foreach. However, this can be overcome by using the GetValues method described in this tip.
C# DelegatesC# Delegates
The fourteenth part of the C# Object-Oriented Programming tutorial explains how to add delegates to classes and programs. Delegates are used to provide references to methods that may be altered at run-time. They are also essential when creating events.
Convert A String to an Enumeration ValueConvert A String to an Enumeration Value
Enumerations provide an excellent way to name grouped numeric values. Often, the name of an enumeration value will be stored in a database or a file as a string. Later it will need to be converted back to the enumerated type using Enum.Parse.
Check if a String is Numeric with TryParseCheck if a String is Numeric with TryParse
When validating user input or information from integrated systems, it is often necessary to check if a provided string value is numeric. Testing both integer and floating point values is made simple is .NET 2.0 with the advent of the TryParse method.
C# IndexersC# Indexers
The thirteenth part of the C# Object-Oriented Programming tutorial describes the use of indexers. A class that has an indexer can be used in a similar manner to an array. Objects of the class can use array-style notation to present multiple values.
C# Conversion Operator OverloadingC# Conversion Operator Overloading
The twelfth part of the C# Object-Oriented Programming tutorial completes the investigation of operator overloading in C#. This article describes the process for overloading conversion operators to allow implicit and explicit casting between data types.
C# Relational Operator OverloadingC# Relational Operator Overloading
The eleventh article in the C# Object-Oriented Programming tutorial furthers the investigation of operator overloading. This time the overloading of the relational operators is described, allowing custom classes to be included in comparison operations.
<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Next >> |