VariableCollection Class |
Namespace: SampSharp.Entities.SAMP
public class VariableCollection : IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, IEnumerable
The VariableCollection type exposes the following members.
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ICollectionT. | |
IsReadOnly | Gets a value indicating whether the ICollectionT is read-only. | |
Item | Gets or sets the element with the specified key. | |
Keys | Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue. | |
Values | Gets an ICollectionT containing the values in the IDictionaryTKey, TValue. |
Name | Description | |
---|---|---|
Add | Adds an element with the provided key and value to the IDictionaryTKey, TValue. | |
Clear | Removes all items from the ICollectionT. | |
ContainsKey | Determines whether the IDictionaryTKey, TValue contains an element with the specified key. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetFloat |
Gets a floating-point value of the variable with the specified varName.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInt |
Gets an integer value of the variable with the specified varName.
| |
GetString |
Gets a string value of the variable with the specified varName.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove | Removes the element with the specified key from the IDictionaryTKey, TValue. | |
Set(String, Int32) |
Sets and replaces the value of the variable with the specified varName with the specified
value.
| |
Set(String, Object) |
Sets and replaces the value of the variable with the specified varName with the specified
value.
| |
Set(String, Single) |
Sets and replaces the value of the variable with the specified varName with the specified
value.
| |
Set(String, String) |
Sets and replaces the value of the variable with the specified varName with the specified
value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue | Gets the value associated with the specified key. |