Click or drag to resize

BcfCellExtensionsSetValueT Method (BcfCell, T)

Sets Value without boxing and bypasses the Converter. The method does not support type conversions. You can set Int32 on int?-cells; String on IComparable-cells; but you CAN NOT set Byte on an Int32-cell or any other thing that requires explicit or implicit conversions.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public static void SetValue<T>(
	this BcfCell cell,
	T value
)

Parameters

cell
Type: CalculationWorks.BusinessModelBcfCell
The cell.
value
Type: T
The value to set.

Type Parameters

T
Value type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BcfCell. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioncell is .
InvalidOperationExceptionSpecified value is not applicable without conversion.
See Also