コード例 #1
0
		public bool IsWideningOrIdentityConvertibleTo(PrimitiveType conversionTarget)
		{
			if (_kind == conversionTarget._kind)
			{
				return true;
			}
			PrimitiveTypeKind[] acceptableTargets;
			if (!_wideningConversionTable.TryGetValue(_kind, out acceptableTargets))
			{
				return false;
			}
			return acceptableTargets.Contains(conversionTarget._kind);
		}