Exemplo n.º 1
0
 /// <summary>
 /// Invokes indexer on the specified instance.
 /// </summary>
 /// <param name="instance">Instance of the type.</param>
 /// <param name="index">Index arguments.</param>
 public virtual IMember Index(IPythonInstance instance, IArgumentSet args) => instance?.Index(args) ?? UnknownType;
Exemplo n.º 2
0
 /// <summary>
 /// Invokes indexer on the specified instance.
 /// </summary>
 /// <param name="instance">Instance of the type.</param>
 /// <param name="index">Index arguments.</param>
 public virtual IMember Index(IPythonInstance instance, object index) => instance?.Index(index) ?? UnknownType;