Duality.Log.EventInfo C# (CSharp) Method

EventInfo() public static method

Returns a string that can be used for representing an event in log entries.
public static EventInfo ( EventInfo info, bool includeDeclaringType = true ) : string
info System.Reflection.EventInfo
includeDeclaringType bool If true, the events declaring type is included in the returned name.
return string
        public static string EventInfo(EventInfo info, bool includeDeclaringType = true)
        {
            string declTypeName = Type(info.DeclaringType);
            string fieldTypeName = Type(info.EventHandlerType);
            return string.Format(System.Globalization.CultureInfo.InvariantCulture,
                "{0} {1}{2}",
                fieldTypeName,
                includeDeclaringType ? declTypeName + "." : "",
                info.Name);
        }