internal MethodGenericInvocationDescriptor(MethodBase method, Assembly containingAssembly)
            : this()
        {
            var parts = new List <string>();

            MethodGenericInvocationDescriptor.AddLocation(method, parts);
            MethodGenericInvocationDescriptor.AddCallingConventions(method, parts);
            MethodGenericInvocationDescriptor.AddReturnValue(method, containingAssembly, parts);

            parts.Add(method.GetName(containingAssembly, false) +
                      MethodGenericDescriptor.GetGenericDeclarationInformation(
                          method as MethodInfo, containingAssembly, false) +
                      MethodGenericInvocationDescriptor.GetMethodArgumentInformation(method, containingAssembly));

            this.Value = string.Join(" ", parts.ToArray());
        }
        internal MethodGenericDeclarationDescriptor(MethodBase method, Assembly containingAssembly)
            : base()
        {
            var descriptors = new List <string>();

            MethodGenericDeclarationDescriptor.AddAttributes(method, descriptors);
            MethodGenericDeclarationDescriptor.AddLocation(method, descriptors);
            MethodGenericDeclarationDescriptor.AddCallingConventions(method, descriptors);
            MethodGenericDeclarationDescriptor.AddReturnType(method, containingAssembly, descriptors);

            descriptors.Add(method.GetName(containingAssembly, true) +
                            MethodGenericDescriptor.GetGenericDeclarationInformation(
                                (method as MethodInfo), containingAssembly, true) +
                            MethodGenericDeclarationDescriptor.GetMethodArgumentInformation(method, containingAssembly));
            descriptors.Add("cil managed");

            this.Value = string.Join(" ", descriptors.ToArray());
        }