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;
		}
Beispiel #2
0
        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);
        }