tagged [explicit]
Why is it illegal to have a private setter on an explicit getter-only interface implementation?
Why is it illegal to have a private setter on an explicit getter-only interface implementation? I tend to favor explicit interface implementations over implicit ones, as I think programming against th...
- Modified
- 12 May at 15:0
Explicit interface implementation cannot be virtual
Explicit interface implementation cannot be virtual For the record, I've already seen this [connect item](https://connect.microsoft.com/VisualStudio/feedback/details/93163/allow-explicit-interface-imp...
- Modified
- 17 Aug at 11:19
Why/when is it important to specify an operator as explicit?
Why/when is it important to specify an operator as explicit? I've borrowed the code below from [another question](https://stackoverflow.com/a/7305947/93394) (slightly modified), to use in my code: ```...
- Modified
- 23 May at 12:25
Why does calling an explicit interface implementation on a value type cause it to be boxed?
Why does calling an explicit interface implementation on a value type cause it to be boxed? My question is somewhat related to this one: [How does a generic constraint prevent boxing of a value type w...
- Modified
- 23 May at 12:33
Explicit cast operator fails with "assembly is not referenced" error
Explicit cast operator fails with "assembly is not referenced" error This is a very uncommon problem and there are definetly many workarounds, but I would like to understand what is actually going on ...
How do I perform explicit operation casting from reflection?
How do I perform explicit operation casting from reflection? I want to use reflection and do either an implicit or explicit coversion using reflection. Given I have defined Foo this way ``` public cla...
- Modified
- 8 Sep at 16:19
C#: Property overriding by specifying the interface explicitly
C#: Property overriding by specifying the interface explicitly While attempting to override the explicit interface implementation of the `ICollection.IsReadOnly` property from the `Collection` class, ...
- Modified
- 14 Sep at 00:25
How to emit explicit interface implementation using reflection.emit?
How to emit explicit interface implementation using reflection.emit? Observe the following simple source code: ``` using System; using System.Linq.Expressions; using System.Reflection; using System.Re...
- Modified
- 30 Nov at 22:56
LayoutKind.Sequential not followed when substruct has LayoutKind.Explicit
LayoutKind.Sequential not followed when substruct has LayoutKind.Explicit When running this code: ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System...
- Modified
- 23 May at 12:4