/// <summary> /// Returns a value indicating whether the <see cref="Type"/>specified by <paramref name="typeName"/> /// from the reference project is also visible to the dependent project. /// </summary> /// <param name="typeName">The full name of the <see cref="Type"/>from the reference project.</param> /// <returns>The <see cref="CodeMemberShareKind"/> representing whether it is shared and in what way.</returns> public CodeMemberShareKind GetTypeShareKind(string typeName) { CodeMemberKey key = CodeMemberKey.CreateTypeKey(typeName); SharedCodeDescription description = this.GetSharedCodeDescription(key); return(description.ShareKind); }
/// <summary> /// Creates a new instance of the <see cref="CodeMemberKey"/> class /// to describe the a <see cref="Type"/> from the given <paramref name="type"/>. /// </summary> /// <param name="type">The <see cref="Type"/> from which to construct the key.</param> /// <returns>A new instance which describes that type.</returns> internal static CodeMemberKey CreateTypeKey(Type type) { Debug.Assert(type != null, "type cannot be null"); return(CodeMemberKey.CreateTypeKey(type.AssemblyQualifiedName)); }