Raven.Studio.StudioViewLocator.PossibleViewTypeNamesInternal C# (CSharp) Method

PossibleViewTypeNamesInternal() static private method

static private PossibleViewTypeNamesInternal ( string fullName, object context ) : IEnumerable
fullName string
context object
return IEnumerable
		static IEnumerable<string> PossibleViewTypeNamesInternal(string fullName, object context)
		{
			if (context != null)
			{
				yield return fullName.Remove(fullName.Length - 4, 4);
				yield return fullName + "." + context;
			}

			yield return fullName + "View";
			yield return fullName.Replace("Model", "View");
			yield return fullName.Replace("ViewModel", "View");
		}
	}