public static object[] ToObjectArray(StringData[] stringData) { object[] result = new object[stringData.Length]; for (int i = 0; i < result.Length; i++) { result[i] = stringData[i].Value; } return result; }
/// <summary> /// Creates a new StringData instance for the given script. /// </summary> private static StringData ForScript(TextScript textScript) { StringData result; result = new StringData(); result._textScript = textScript; result._value = textScript.Sample; result._name = textScript.Name; return result; }
/// <summary> /// Creates a new StringData instance for the given value. /// </summary> private static StringData ForValue(string stringValue, string name) { StringData result; result = new StringData(); result._value = stringValue; result._name = name; return result; }
/// <summary> /// Creates a new StringData instance for the given value. /// </summary> private static StringData ForCallback(StringCallback callback, string name) { StringData result; result = new StringData(); result._stringDelegate = callback; result._name = name; return result; }