示例#1
0
        public IProjectFile GetProjectFile(string fileSystemPath)
        {
            if (FileSystemPath.Equals(fileSystemPath, StringComparison.OrdinalIgnoreCase))
            {
                return(this);
            }
            CrcsProject project =
                _projects.FirstOrDefault(
                    x => x.FileSystemPath.Equals(fileSystemPath, StringComparison.OrdinalIgnoreCase));

            if (project != null)
            {
                return(project);
            }

            foreach (CrcsProject proj in _projects)
            {
                IProjectFile projectFile = proj.GetProjectFile(fileSystemPath);
                if (projectFile != null)
                {
                    return(projectFile);
                }
            }
            return(null);
        }
示例#2
0
 protected bool Equals(InjectedHlslLocationInfo other)
 {
     return(Range.Equals(other.Range) && FileSystemPath.Equals(other.FileSystemPath) && ProgramType == other.ProgramType);
 }