Exemplo n.º 1
0
 public FieldInfo AddField(String name){
   if (this.noExpando)
     return null;
   FieldInfo field = (FieldInfo)this.NameTable[name];
   if (field == null){
     field = new JSExpandoField(name);
     this.name_table[name] = field;
     this.field_table.Add(field);
   }
   return field;
 }
Exemplo n.º 2
0
 public FieldInfo AddField(String name){
   if (this.fast)
     return null;
   if (this.isComponentScope)
     return ((GlobalScope)this.parent).AddField(name);
   FieldInfo field = (FieldInfo)this.name_table[name];
   if (field == null){
     field = new JSExpandoField(name);
     this.name_table[name] = field;
     this.field_table.Add(field);
   }
   return field;
 }
Exemplo n.º 3
0
        public FieldInfo AddField(String name)
        {
            if (this.noExpando)
            {
                return(null);
            }
            FieldInfo field = (FieldInfo)this.NameTable[name];

            if (field == null)
            {
                field = new JSExpandoField(name);
                this.name_table[name] = field;
                this.field_table.Add(field);
            }
            return(field);
        }
        public FieldInfo AddField(string name)
        {
            if (this.noExpando)
            {
                return(null);
            }
            FieldInfo info = (FieldInfo)this.NameTable[name];

            if (info == null)
            {
                info = new JSExpandoField(name);
                this.name_table[name] = info;
                this.field_table.Add(info);
            }
            return(info);
        }
 public FieldInfo AddField(string name)
 {
     if (base.fast)
     {
         return null;
     }
     if (this.isComponentScope)
     {
         return ((GlobalScope) base.parent).AddField(name);
     }
     FieldInfo info = (FieldInfo) base.name_table[name];
     if (info == null)
     {
         info = new JSExpandoField(name);
         base.name_table[name] = info;
         base.field_table.Add(info);
     }
     return info;
 }
Exemplo n.º 6
0
        public FieldInfo AddField(String name)
        {
            if (this.fast)
            {
                return(null);
            }
            if (this.isComponentScope)
            {
                return(((GlobalScope)this.parent).AddField(name));
            }
            FieldInfo field = (FieldInfo)this.name_table[name];

            if (field == null)
            {
                field = new JSExpandoField(name);
                this.name_table[name] = field;
                this.field_table.Add(field);
            }
            return(field);
        }
Exemplo n.º 7
0
        public FieldInfo AddField(string name)
        {
            if (base.fast)
            {
                return(null);
            }
            if (this.isComponentScope)
            {
                return(((GlobalScope)base.parent).AddField(name));
            }
            FieldInfo info = (FieldInfo)base.name_table[name];

            if (info == null)
            {
                info = new JSExpandoField(name);
                base.name_table[name] = info;
                base.field_table.Add(info);
            }
            return(info);
        }
Exemplo n.º 8
0
        public void SetMemberValue2(String name, Object value)
        {
            FieldInfo field = (FieldInfo)this.NameTable[name];

            if (field == null && this.isASubClass)
            {
                field = this.GetType().GetField(name);
            }
            if (field == null)
            {
                if (this.noExpando)
                {
                    return;
                }
                field = new JSExpandoField(name);
                this.name_table[name] = field;
                this.field_table.Add(field);
            }
            if (!field.IsInitOnly && !field.IsLiteral)
            {
                field.SetValue(this, value);
            }
        }
Exemplo n.º 9
0
 public void SetMemberValue2(String name, Object value){
   FieldInfo field = (FieldInfo)this.NameTable[name];
   if (field == null && this.isASubClass)
     field = this.GetType().GetField(name);
   if (field == null){
     if (this.noExpando)
       return;
     field = new JSExpandoField(name);
     this.name_table[name] = field;
     this.field_table.Add(field);
   }
   if (!field.IsInitOnly && !field.IsLiteral)
     field.SetValue(this, value);
 }