FileContextCore/Serializer/SerializerHelper.cs
Method Deserialize
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static object Deserialize(this string input, Type type)
{
if (string.IsNullOrEmpty(input))
{
return type.GetDefaultValue();
Avoid too many return
statements within this method. Wontfix
Wontfix
return Convert.ChangeType(input, type, CultureInfo.InvariantCulture);
Avoid too many return
statements within this method. Open
Open
return Enum.Parse(type, input);
Avoid too many return
statements within this method. Open
Open
return arr.ToArray();