public static StringToLongInteger ( string str ) : long | ||
str | string | The string to convert. |
리턴 | long |
public override long ToLong(ref PhpValue me) => Convert.StringToLongInteger(me.String);
public long ToLong() { return(Convert.StringToLongInteger(ToString())); }
/// <summary> /// Sets value at specific index. Value must not be an alias. /// </summary> void IPhpArray.SetItemValue(IntStringKey key, PhpValue value) { int index = key.IsInteger ? key.Integer : (int)Convert.StringToLongInteger(key.String); this[index] = value; }
public long ToLong() => Convert.StringToLongInteger(ToString());
/// <summary> /// Gets value at given index. /// Gets <c>void</c> value in case the key is not found. /// </summary> PhpValue IPhpArray.GetItemValue(IntStringKey key) { int index = key.IsInteger ? key.Integer : (int)Convert.StringToLongInteger(key.String); return((index >= 0 && index < this.Length) ? this[index].AsValue() : PhpValue.Create(string.Empty)); }