コード例 #1
0
ファイル: FREArray.cs プロジェクト: dedosmedia/AWS-S3-ANE
        /// <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);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static bool AsBool(this FreObjectSharp inFre) => (bool)inFre.Value;
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static string AsString(this FreObjectSharp inFre) => Convert.ToString(inFre.Value);
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static Rect AsRect(this FreObjectSharp inFre) => new FreRectangleSharp(inFre).Value;
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static double AsDouble(this FreObjectSharp inFre) => Convert.ToDouble(inFre.Value);
コード例 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static uint AsUInt(this FreObjectSharp inFre) => Convert.ToUInt32(inFre.Value);
コード例 #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static bool AsBool(this FreObjectSharp inFre) => FreSharpHelper.GetAsBool(inFre.RawValue);
コード例 #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static string AsString(this FreObjectSharp inFre) => FreSharpHelper.GetAsString(inFre.RawValue);
コード例 #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static double AsDouble(this FreObjectSharp inFre) => FreSharpHelper.GetAsDouble(inFre.RawValue);
コード例 #10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inFre"></param>
 /// <returns></returns>
 public static uint AsUInt(this FreObjectSharp inFre) => FreSharpHelper.GetAsUInt(inFre.RawValue);