Close

refections

How do you retrieving the XmlEnumAttribute values for an Enum

When you are playing with Web Services you quite often find information held in an Attribute, but how do you get it out? e.g. public enum Classification {         [System.Xml.Serialization.XmlEnumAttribute(“Test drive demonstrator”)]        Testdrivedemonstrator,         [System.Xml.Serialization.XmlEnumAttribute(“Showroom vehicle”)]        Showroomvehicle,   By using reflection you can gain access to the […]

Read More

Copy one object to another Object

I was in need to copying one concreate object to another concreate object, but I needed the flexability that when a new property is added the method would not need to be changed, also I needed the ability for the method to take in any types. So the first take was to generate a method […]

Read More