Replaced built-in valuetypes with language keywords.

This commit is contained in:
Taloth Saldono
2015-10-03 19:45:26 +02:00
parent d6a135857d
commit ccfa13e383
454 changed files with 2042 additions and 2042 deletions

View File

@@ -23,7 +23,7 @@ namespace NzbDrone.Common.Serializer
{
throw new JsonSerializationException("Can't convert type " + existingValue.GetType().FullName + " to number");
}
if (objectType == typeof(Int64))
if (objectType == typeof(long))
{
return Convert.ToInt64(reader.Value);
}
@@ -33,7 +33,7 @@ namespace NzbDrone.Common.Serializer
public override bool CanConvert(Type objectType)
{
return objectType == typeof(Int32) || objectType == typeof(Int64) || objectType == typeof(int);
return objectType == typeof(int) || objectType == typeof(long) || objectType == typeof(int);
}
}
}