SetValue() публичный Метод

public SetValue ( string name, object value ) : void
name string
value object
Результат void
Пример #1
0
 public void RaiseWhenSetUndefinedVariable()
 {
     IObject obj = new BaseObject(type);
     obj.SetValue("length", 100);
 }
Пример #2
0
 public void SetAndGetInstanceVariable()
 {
     IObject obj = new BaseObject(type);
     obj.SetValue("name", "Adam");
     Assert.AreEqual("Adam", obj.GetValue("name"));
 }
Пример #3
0
 public void InvokeGetName()
 {
     IObject obj = new BaseObject(type);
     obj.SetValue("name", "Adam");
     Assert.AreEqual("Adam", obj.Invoke("getName", null, null));
 }