src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Gets the COM object that represents the project item
// </summary>
Gets the COM object that represents the project item
Gets the COM object that represents the project item
private static object GetProjectItemObject(ProjectItem projectItem)
        {
            var projectItemObj = projectItem.Object;
            if (((IsWebSiteProject(projectItem.ContainingProject) && (projectItemObj is VSWebProjectItem)))
                || (projectItemObj is VSProjectItem))
            {
                return projectItemObj;
            }
            Debug.Fail("ProjectItem.Object does not implement VSWebProjectItem or VSProjectItem.");
            return null;
        }
private static object GetProjectItemObject ( ProjectItem projectItem ) { var projectItemObj = projectItem . Object ; if ( ( ( IsWebSiteProject ( projectItem . ContainingProject ) && ( projectItemObj is VSWebProjectItem ) ) ) || ( projectItemObj is VSProjectItem ) ) { return projectItemObj ; } Debug . Fail ( " " ) ; return null ; }
Gets the COM object that represents the project item
Gets the COM object that represents the project item
projectItem
ProjectItem