Hello.. Please I have a class in c# whose main function is to return the types and objects as dictionary Over a service .
Is it possible to cast the Object sents over the WCF service in the front end.
I.e using reflection to get the type of an object from the types.ToString() and using the type to cast the objects.
NB the Class that returns the dictionary and my frontend are in different projects so different Namespaces
Type repType = typeof(List <>).MakeGenericType(Type.GetType(EntityandTypes[entity])); object rep = Assembly.GetAssembly(repType).CreateInstance(repType.FullName); grdResult.ItemsSource = e.Result.ToList().Cast();
Note : EntityandTypes is a dictionary that contains Object and Their types .