Performance update

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-20 17:48:11 -04:00
parent 2c56e75ca5
commit 6fbeee841f
17 changed files with 179 additions and 173 deletions

View File

@@ -11,9 +11,9 @@ namespace MediaBrowser.Controller.Xml
/// <summary>
/// Reads a float from the current element of an XmlReader
/// </summary>
public static async Task<float> ReadFloatSafe(this XmlReader reader)
public static float ReadFloatSafe(this XmlReader reader)
{
string valueString = await reader.ReadElementContentAsStringAsync();
string valueString = reader.ReadElementContentAsString();
float value = 0;
@@ -29,9 +29,9 @@ namespace MediaBrowser.Controller.Xml
/// <summary>
/// Reads an int from the current element of an XmlReader
/// </summary>
public static async Task<int> ReadIntSafe(this XmlReader reader)
public static int ReadIntSafe(this XmlReader reader)
{
string valueString = await reader.ReadElementContentAsStringAsync();
string valueString = reader.ReadElementContentAsString();
int value = 0;