DartSharp.Context.SetValue C# (CSharp) 메소드

SetValue() 공개 메소드

public SetValue ( string name, object value ) : void
name string
value object
리턴 void
        public void SetValue(string name, object value)
        {
            this.values[name] = value;
        }

Usage Example

예제 #1
0
        public void GetTypeStoredInContext()
        {
            Context context = new Context();

            context.SetValue("int", typeof(int));

            Type type = TypeUtilities.GetType(context, "int");

            Assert.IsNotNull(type);
            Assert.AreEqual(type, typeof(int));
        }