VsTeXProject.VisualStudio.Project.Automation.OAProperties.IsComVisible C# (CSharp) Method

IsComVisible() private static method

private static IsComVisible ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
return bool
        private static bool IsComVisible(PropertyInfo propertyInfo)
        {
            var customAttributesOnProperty = propertyInfo.GetCustomAttributes(typeof (ComVisibleAttribute), true);

            foreach (ComVisibleAttribute attr in customAttributesOnProperty)
            {
                if (!attr.Value)
                {
                    return false;
                }
            }
            return true;
        }

Same methods

OAProperties::IsComVisible ( Type targetType ) : bool