src/Microsoft/JSInterop/0.Abstractions/src/Interception/IJSObjectInvocationBaseExtensions.cs
/// <summary>
/// Ensures that the function invocation is similiar to a getter invocation.
/// This is not the case then the number of arguments is greater than zero.
/// </summary>
/// <param name="invocation"></param>
/// <exception cref="ArgumentException">Thrown when not a getter.</exception>
Ensures that the function invocation is similiar to a getter invocation.
This is not the case then the number of arguments is greater than zero.
Ensures that the function invocation is similiar to a getter invocation . This is not the case then the number of arguments is greater than zero .
public static void EnsureMimickingGetter(this IJSObjectInvocationBase invocation) {
            if (invocation.Arguments.Length > 0) {
                throw new ArgumentException("When you mimic a getter you cannot specify arguments.");
            }
        }
public static void EnsureMimickingGetter ( this IJSObjectInvocationBase invocation ) { if ( invocation . Arguments . Length > 0 ) { throw new ArgumentException ( " " ) ; } }
Ensures that the function invocation is similiar to a getter invocation.
Ensures that the function invocation is similiar to a getter invocation .
Thrown when not a getter.
Thrown when not a getter .
IJSObjectInvocationBase
this
invocation
None