示例#1
0
 public override object Get(object context)
 {
     if (!isReadable)
     {
         throw new NotReadablePropertyException("Cannot get a non-readable property [" + name + "]");
     }
     return(property.GetValue(context));
 }
示例#2
0
 private object GetGenericIndexer(object context, EvaluationContext evalContext)
 {
     object[] indices = InitializeIndexerProperty(context, evalContext);
     return(indexer.GetValue(context, indices));
 }