internal static FilePosition GetPosition(IProjectContent pc, string className, string memberName) { IClass c = pc.GetClassByReflectionName(className, false); if (string.IsNullOrEmpty(memberName)) return pc.GetPosition(c); if (c != null) { IMember m = DefaultProjectContent.GetMemberByReflectionName(c, memberName); if (m != null) return pc.GetPosition(m); } return FilePosition.Empty; }
internal static FilePosition GetPosition(IProjectContent pc, string className, string memberName) { IClass c = pc.GetClassByReflectionName(className, false); if (string.IsNullOrEmpty(memberName)) { return(pc.GetPosition(c)); } if (c != null) { IMember m = DefaultProjectContent.GetMemberByReflectionName(c, memberName); if (m != null) { return(pc.GetPosition(m)); } } return(FilePosition.Empty); }