Example #1
0
 /// <summary>
 ///     Gets a value from the <see cref="IResultCursor.Current" /> element. Throwing an exception if the
 ///     <paramref name="identifier" /> isn't there.
 /// </summary>
 /// <typeparam name="T">The <see cref="Type" /> to attempt to get the property as.</typeparam>
 /// <param name="cursor">The <see cref="IResultCursor" /> instance to pull the property from.</param>
 /// <param name="identifier">The name of the identifier to get.</param>
 /// <returns>The converted <typeparamref name="T" /> or <c>default</c></returns>
 /// <exception cref="NullReferenceException">
 ///     Thrown if the <paramref name="cursor" /> hasn't had
 ///     <see cref="IResultCursor.FetchAsync" /> called on it.
 /// </exception>
 public static T GetValueStrict <T>(this IResultCursor cursor, string identifier)
 {
     return(cursor.GetValueInternal <T>(identifier, true));
 }