Microsoft.CSharp.RuntimeBinder.RuntimeBinder.CreateIndexer C# (CSharp) Method

CreateIndexer() private method

private CreateIndexer ( SymWithType swt, EXPR callingObject, EXPR arguments, BindingFlag bindFlags ) : EXPR
swt Microsoft.CSharp.RuntimeBinder.Semantics.SymWithType
callingObject Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
arguments Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
bindFlags BindingFlag
return Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
        private EXPR CreateIndexer(SymWithType swt, EXPR callingObject, EXPR arguments, BindingFlag bindFlags)
        {
            IndexerSymbol index = swt.Sym as IndexerSymbol;
            AggregateType ctype = swt.GetType();
            EXPRMEMGRP memgroup = CreateMemberGroupEXPR(index.name.Text, null, callingObject, SYMKIND.SK_PropertySymbol);

            EXPR result = _binder.BindMethodGroupToArguments(bindFlags, memgroup, arguments);
            return ReorderArgumentsForNamedAndOptional(callingObject, result);
        }