Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
Visual C# Code Snippets

Click here for information on how to use code snippets in VS.NET (2005+)

Converting an Object Array to a Double Array using a Converter [Code | XML]

Title: Converting an Object Array to a Double Array using a Converter
Shortcut: convertobjectarraytodoublearray
Description: Demonstrates how to convert an Object[] array to a double[] array.
Author: C# .Net Fun - http://www.dotnetfun.com - Michael G.

Declarations:
Object:
ID: objArray
Type: System.Object[]
ToolTip: The input Object[] array to convert.
Default: objArray
Literal:
ID: ConverterHandlerMethod
Type:
ToolTip: The name of the converter handling method.
Default: ConverterHandler
Literal:
ID: dblDefault
Type: System.Double
ToolTip: The default double value to use should conversion fail.
Default: 0
Literal:
ID: SourceObjectArray
Type: System.Object[]
ToolTip: The source Object[] array that declares or provided the variable used.
Default: Object[] objArray = new Object[2]; objArray[0] = 1; objArray[1] = 2;
Code View:

XML View:

Open/Save | E-mail | Back
 
COPYRIGHT/DISCLAIMER | CONTACT US