Either using compile-time code generation or inheriting from base classes (not strictly poco) or Reflection.Emit or something of that nature.