Nexus.Client.Games.Steam.KeyValue.AsLong C# (CSharp) Method

AsLong() public method

Attempts to convert and return the value of this instance as a long. If the conversion is invalid, the default value is returned.
public AsLong ( long defaultValue ) : long
defaultValue long The default value to return if the conversion is invalid.
return long
		public long AsLong(long defaultValue)
		{
			long value;

			if (long.TryParse(Value, out value) == false)
			{
				return defaultValue;
			}

			return value;
		}