idTech4.idDict.GetInteger C# (CSharp) 메소드

GetInteger() 공개 메소드

public GetInteger ( string key, int defaultValue ) : int
key string
defaultValue int
리턴 int
		public int GetInteger(string key, int defaultValue = 0)
		{
			string str;

			if(_dict.TryGetValue(key, out str) == true)
			{
				int tmp;
				int.TryParse(str, out tmp);

				return tmp;
			}

			return defaultValue;
		}