public string GetMessage(string prefix) { if (!IsValid()) { return(string.Empty); } return(String.Format("{0} {1}.{2}, {3}", prefix, Method.DeclaringType.Name, Method.Name, ExecutingAssembly.GetName().Name)); }
static Environment() { ExecutingAssembly = Assembly.GetEntryAssembly(); AegisVersion = new Version( Assembly.GetExecutingAssembly().GetName().Version.Major, Assembly.GetExecutingAssembly().GetName().Version.Minor, Assembly.GetExecutingAssembly().GetName().Version.Build, Assembly.GetExecutingAssembly().GetName().Version.Revision); ExecutingVersion = new Version( ExecutingAssembly.GetName().Version.Major, ExecutingAssembly.GetName().Version.Minor, ExecutingAssembly.GetName().Version.Build, ExecutingAssembly.GetName().Version.Revision); }
protected override int CompareToImpl(MethodDesc other, TypeSystemComparer comparer) { var otherMethod = (AssemblyGetExecutingAssemblyMethodThunk)other; return(StringComparer.Ordinal.Compare(ExecutingAssembly.GetName().Name, otherMethod.ExecutingAssembly.GetName().Name)); }