MemoScope/Core/Data/SimpleValueHelper.cs
Method GetSimpleValue
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static object GetSimpleValue(ulong objAddress, ClrType clrType, bool isInterior=false)
{
if (objAddress == 0)
throw new NullReferenceException("ClrObject at is pointing to null address.");
Method GetIPAddress
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static IPAddress GetIPAddress(ClrObject ipAddress)
{
const int AddressFamilyInterNetworkV6 = 23;
const int IPv4AddressBytes = 4;
const int IPv6AddressBytes = 16;
Avoid too many return
statements within this method. Open
Open
return GetDateTime(dateData);
Avoid too many return
statements within this method. Open
Open
return GetIPAddress(new ClrObject(objAddress, clrType, isInterior));