Reputation: 21338
What is the proper way to create a wrapper class for 3rd party library:
I've created a wrapper like so:
public class UserContextWrapper
{
// 3rd party lib
private UserContext _userContext;
public string City {
get { return _userContext.City; }
}
public Organization Organization {
get { return _userContext.Organization; }
}
// Create properties that wrap UserContext 3rd party lib properties
}
public class Organization() { // fill in session info };
Upvotes: 0
Views: 181