The main.cs of my project returns the following warning:
Warning 1 The type \'Extensions.MessageDetails\' in \'PATH\\Extensions.cs\'
If you really need to have both classes declared or referenced in two separate dll, you can mark your class as internal.
internal
Internal types or members are accessible only within files in the same assembly, therefore it will prevent the collision.