System.util.Properties.Remove C# (CSharp) Method

Remove() public method

public Remove ( string key ) : string
key string
return string
        public string Remove(string key)
        {
            string retval;
            _col.TryGetValue(key, out retval);
            _col.Remove(key);
            return retval;
        }

Usage Example

Esempio n. 1
0
 public static Anchor GetAnchor(Properties attributes)
 {
     Anchor anchor = new Anchor(GetPhrase(attributes));
     String value;
     value = attributes[ElementTags.NAME];
     if (value != null) {
         anchor.Name = value;
     }
     value = (String)attributes.Remove(ElementTags.REFERENCE);
     if (value != null) {
         anchor.Reference = value;
     }
     return anchor;
 }
All Usage Examples Of System.util.Properties::Remove