Simon Christensen

Results 4 comments of Simon Christensen

> I don't fully get what you are requested... Could you provide an example how the configuration and how the generated could would look like to address your needs? Sure...

**Maybe there could also be an option to generate something like this:** ```cs public partial global::Base Map(global::BaseDto source) { return source switch { global::DerivedDto x => MapToDerived(x), global::BaseDto x when...

> So `global::BaseDto x when !typeof(BaseDto).IsSubclassOf(source.GetType())` should map only subclasses of `BaseDto` but not `BaseDto` itself? Whats the use case for this? No the exact opposite. Of course the use...

> @simo026q wouldn't then a check in the form `global::BaseDto x when typeof(BaseDto) == source.GetType()` be sufficient? Yeah true, that would do the same thing