KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to do somehow overload a function? Let's take those 3 functions: // Returns StringPropertyInfo let stringProperty (expr:Expr<'a -> string>) (cfg:EntityInfo<'a>) = cfg.Property expr // Returns DatePropertyInfo let dateProperty (expr:Expr<'a -> System.DateTime>) (cfg:EntityInfo<'a>) = cfg.Property expr // Returns BytePropertyInfo let byteProperty (expr:Expr<'a -> System.Byte>) (cfg:EntityInfo<'a>) = cfg.Property expr is there a way to merge them all into just: let property expr cfg = .... if not, whats the most neat way to accomplish something similar?
Tags (comma-separated)
Save Edits
Cancel