Bugfix for text reference of namespace. Converted!

This commit is contained in:
Flamefire committed 2013-03-24 04:56:03 +01:00
1 parent 1f695a7b83
commit 1fbc436505
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ namespace Vocaluxe.Base
CSongs.Filter.FilteredSongs.ForEach((song) => SortList.Add(new SongPointer(song.ID, "")));
else
{
field = Type.GetType("Vocaluxe.Menu.SongMenu.CSong,VocaluxeLib").GetField(fieldName, BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public);
field = typeof(CSong).GetField(fieldName, BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public);
isString = field.FieldType == typeof(string);
if (!isString && field.FieldType != typeof(List<String>))
throw new Exception("Unkown sort field type");