/// <summary> /// Converts map element into a float or returns null if conversion is not possible. /// </summary> /// <param name="key">a key of element to get.</param> /// <returns>float value of the element or null if conversion is not supported.</returns> /// See <see cref="FloatConverter.ToNullableFloat(object)"/> public float?GetAsNullableFloat(string key) { var value = Get(key); return(FloatConverter.ToNullableFloat(value)); }
/// <summary> /// Converts array element into a float or returns null if conversion is not possible. /// </summary> /// <param name="index">an index of element to get.</param> /// <returns>float value of element or null if conversion is not supported.</returns> /// See <see cref="FloatConverter.ToNullableFloat(object)"/> public float?GetAsNullableFloat(int index) { return(FloatConverter.ToNullableFloat(this[index])); }
public float?GetAsNullableFloat() { return(FloatConverter.ToNullableFloat(Value)); }