Replies: 6 comments
-
Do you have your C# language version set to 7.3, or is it lower? |
Beta Was this translation helpful? Give feedback.
-
I do, it is "C# latest major version (default)" in the select box of "Language version" in project props -> build -> advanced, and the major version in the box is "C# 7.3" and this code typeof(string).Assembly.ImageRuntimeVersion returned "v4.0.30319" |
Beta Was this translation helpful? Give feedback.
-
latest major version = 7.0 |
Beta Was this translation helpful? Give feedback.
-
What does "major" means in this context? The greatest number of version, did I get it wrong? |
Beta Was this translation helpful? Give feedback.
-
7 is the major version number, 3 is the minor version |
Beta Was this translation helpful? Give feedback.
-
now I've got same problem with generic UIEdit public static IUIEdit<T> Set<T>(this IUIEdit<T> edit, T value)
{
edit.Add(new SetToEditCommand(edit, value.ToString()));
return edit;
} (it's ok when I'm specifyin signature by UIEdit instead of IUIEdit, but my question is still actual) |
Beta Was this translation helpful? Give feedback.
-
Hi, there!
Just found out the problem with limitations for generic method;
I'l describe on expample:
I'm expecting what the call of "Set" for "UIEdit" would pass correclty
But, I'm facing the problem, what actually not this "Set" mapped to it, but this:
p.s. they are both in one namespace, but both are limited by those interfaces, why is that happening?
I mean, please, dont offer me to split namespaces.
p.s.s. and yeah, I know if I'l change the last "Set" to non-generic - it could be working great.
What can I do in this situation except the things in p.s?
Beta Was this translation helpful? Give feedback.
All reactions