Dereference() public method

Resolve the named object from the context bound to this reference.
public Dereference ( ) : object
return object
Exemplo n.º 1
0
        public TupleValue(DataReference reference, int index)
        {
            var list = reference.Dereference();

            Source = list as ISource;

            Index = index;
        }
Exemplo n.º 2
0
        public void ThenDerefernceMustResolveTheObject()
        {
            DataReference dataReference = new DataReference(Context, "testList");

            var deref = dataReference.Dereference();

            Assert.AreSame(deref, Context["testList"], "The context object was not resolved");
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initialise a new instance against a reference
 /// </summary>
 public When(DataReference reference, Op @operator, object rightHandSide)
     : this(reference.Dereference() as ISource, @operator, rightHandSide)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initialise against a reference
 /// </summary>
 public ListSequence(DataReference reference)
 {
     ListItems = reference.Dereference() as IList<object>;
 }
Exemplo n.º 5
0
 public PadLeft(DataReference reference, int length, char character)
     : this(reference.Dereference() as ISource, length, character)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initialise against a reference
 /// </summary>
 public Substring(DataReference reference, int start, int? length = null)
     : this(reference.Dereference() as ISource, start, length)
 {
 }