Esempio n. 1
0
File: Tag.cs Progetto: Panke/SDL.NET
        /**
         * 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);
            }
        }
Esempio n. 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;
     }
 }
Esempio n. 3
0
 public void AddValue(object value)
 {
     this.valuesDirty = true;
     this.values.Add(SDLUtil.CoerceOrFail(value));
 }