コード例 #1
0
        internal static string GetDiagnosticLocation(RuntimeExport export)
        {
            Requires.NotNull(export, nameof(export));

            if (export.Member != null)
            {
                return(string.Format(
                           CultureInfo.CurrentCulture,
                           "{0}.{1}",
                           export.DeclaringTypeRef.Resolve().FullName,
                           export.Member.Name));
            }
            else
            {
                return(export.DeclaringTypeRef.Resolve().FullName);
            }
        }
コード例 #2
0
        public RuntimePart GetPart(RuntimeExport export)
        {
            Requires.NotNull(export, nameof(export));

            return(this.partsByType[export.DeclaringTypeRef]);
        }