Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 303 Bytes

GCop111.md

File metadata and controls

20 lines (12 loc) · 303 Bytes

GCop 111

"Use implicit generic method typing"

Rule description

When C# can infer the generic type of a method, it's cleaner to remove explicit type from the call.

Example

Database.Save<Customer>(myCustomer);

should be 🡻

Database.Save(myCustomer);