コード例 #1
0
 /// <summary>
 /// Passes the value as strictly typed <c>array</c>.
 ///
 /// Gets the underlaying <see cref="PhpArray"/> or throws an exception.
 /// The <c>NULL</c> is returned as it is.        ///
 /// Anything else than <c>NULL</c> or <see cref="PhpArray"/> causes an exception.
 /// </summary>
 /// <returns><see cref="PhpArray"/> instance or a<c>null</c> reference.</returns>
 /// <exception cref="InvalidCastException">Value is neither <see cref="PhpArray"/> or <c>null</c>.</exception>
 public PhpArray GetArray() => _type.GetArray(ref this);