/// <summary> /// Sets the C# FreObject in the C# FreArray at i. /// </summary> public void Set(uint index, object value) { uint resultPtr = 0; var v = new FreObjectSharp(FreSharpHelper.FreObjectSharpFromObject(value).RawValue); FreSharpHelper.Core.setObjectAt(RawValue, index, v.RawValue, ref resultPtr); }
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static bool AsBool(this FreObjectSharp inFre) => (bool)inFre.Value;
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static string AsString(this FreObjectSharp inFre) => Convert.ToString(inFre.Value);
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static Rect AsRect(this FreObjectSharp inFre) => new FreRectangleSharp(inFre).Value;
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static double AsDouble(this FreObjectSharp inFre) => Convert.ToDouble(inFre.Value);
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static uint AsUInt(this FreObjectSharp inFre) => Convert.ToUInt32(inFre.Value);
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static bool AsBool(this FreObjectSharp inFre) => FreSharpHelper.GetAsBool(inFre.RawValue);
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static string AsString(this FreObjectSharp inFre) => FreSharpHelper.GetAsString(inFre.RawValue);
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static double AsDouble(this FreObjectSharp inFre) => FreSharpHelper.GetAsDouble(inFre.RawValue);
/// <summary> /// /// </summary> /// <param name="inFre"></param> /// <returns></returns> public static uint AsUInt(this FreObjectSharp inFre) => FreSharpHelper.GetAsUInt(inFre.RawValue);