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: