code_junkie

C# Generics/Design Patterns: Should I use the template method?

Nov 11th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. _service = ServiceWrapper.GetServiceWrapper("2");
  2.  
  3. public IProperty[] GetProperties(string item, IProperty[] properties)
  4. {
  5. Property[] props = ServiceObjectFactory.CreateProperties<Property>(properties);
  6. Property[] result = _service.GetProperties(item, props);
  7. return ServiceObjectFactory.CreateProperties(result);
  8. }
Add Comment
Please, Sign In to add comment