/// <summary> /// Returns a value indicating whether the a property named <paramref name="propertyName"/> /// exposed by 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> /// <param name="propertyName">The name of the property.</param> /// <returns>The <see cref="CodeMemberShareKind"/> representing whether it is shared and in what way.</returns> public CodeMemberShareKind GetPropertyShareKind(string typeName, string propertyName) { CodeMemberKey key = CodeMemberKey.CreatePropertyKey(typeName, propertyName); SharedCodeDescription description = this.GetSharedCodeDescription(key); return(description.ShareKind); }
/// <summary> /// Returns a value indicating whether a method named <paramref name="methodName"/> /// exposed by 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> /// <param name="methodName">The name of the method.</param> /// <param name="parameterTypeNames">The full type names of the method parameters, in the order they must be declared.</param> /// <returns>The <see cref="CodeMemberShareKind"/> representing whether it is shared and in what way.</returns> public CodeMemberShareKind GetMethodShareKind(string typeName, string methodName, IEnumerable <string> parameterTypeNames) { CodeMemberKey key = CodeMemberKey.CreateMethodKey(typeName, methodName, parameterTypeNames == null ? null : parameterTypeNames.ToArray()); SharedCodeDescription description = this.GetSharedCodeDescription(key); return(description.ShareKind); }
/// <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); }