I\'ve got a generic class:
public class BaseFieldValue
{
public BaseFieldValue()
{
//...
}
public BaseFieldValue(string val
You could do the following:
public class BaseFieldValue
{
public struct Special
{
internal string m_value;
public Special(string value)
{
m_value = value;
}
}
public BaseFieldValue()
{
//...
}
public BaseFieldValue(Special value)
{
//...
}
public BaseFieldValue(T value)
{
//...
}
}
... or, you could add an extra ignored boolean parameter to your special constructor, just to disambiguate it.