Duality.Log.MethodInfo C# (CSharp) Method

MethodInfo() public static method

Returns a string that can be used for representing a method or constructor in log entries.
public static MethodInfo ( MethodBase info, bool includeDeclaringType = true ) : string
info System.Reflection.MethodBase
includeDeclaringType bool If true, the methods or constructors declaring type is included in the returned name.
return string
        public static string MethodInfo(MethodBase info, bool includeDeclaringType = true)
        {
            if (info is MethodInfo)
                return MethodInfo(info as MethodInfo);
            else if (info is ConstructorInfo)
                return ConstructorInfo(info as ConstructorInfo);
            else if (info != null)
                return info.ToString();
            else
                return "null";
        }

Same methods

Log::MethodInfo ( MethodInfo info, bool includeDeclaringType = true ) : string