SharePoint enums and Webservices

When you get an xml result from the SharePoint webservices, these results are Strings, but in the SharePoint dll these results are availbale in an enum.

private SPFieldType GetFielType(XElement xElement) {
return (SPFieldType)Enum.Parse(typeof(SPFieldType), GetAttribute(xElement, AttributesWeb.Type));
}

I created some wrapper classes that makes coding easier against SharePoint Webservices, in time I will publish more of these:

these can be found here

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)