Exemple #1
0
        /**
         * An indexer for the tag's values
         * @param index The <c>index</c> to get or set
         * @return The value at the given \cindex
         */
        public object this[int index] {
            get {
                return(values[index]);
            }

            set {
                valuesDirty   = true;
                values[index] = SDLUtil.CoerceOrFail(value);
            }
        }
Exemple #2
0
 public object this[string sdlNamespace, string key]
 {
     set
     {
         this.attributesDirty = true;
         this.EnsureAttributesInitialized();
         this.attributes[SDLUtil.ValidateIdentifier(key)] = SDLUtil.CoerceOrFail(value);
         if (sdlNamespace == null)
         {
             sdlNamespace = "";
         }
         if (sdlNamespace.Length != 0)
         {
             SDLUtil.ValidateIdentifier(sdlNamespace);
         }
         this.attributeToNamespace[key] = sdlNamespace;
     }
 }
Exemple #3
0
 public void AddValue(object value)
 {
     this.valuesDirty = true;
     this.values.Add(SDLUtil.CoerceOrFail(value));
 }