|
implicit operator + interface
|
|||
---|---|---|---|
#18+
Смотрим код Код: c# 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28.
Есть мысли? ... |
|||
:
Нравится:
Не нравится:
|
|||
26.02.2018, 09:15 |
|
implicit operator + interface
|
|||
---|---|---|---|
#18+
C# Language Specification, §10.10.3 Conversion operators (ближе к концу): User-defined conversions are not allowed to convert from or to interface-types. In particular, this restriction ensures that no user-defined transformations occur when converting to an interface-type, and that a conversion to an interface-type succeeds only if the object being converted actually implements the specified interface-type. - вроде как оно. ... |
|||
:
Нравится:
Не нравится:
|
|||
26.02.2018, 10:09 |
|
|
start [/forum/topic.php?fid=20&msg=39607120&tid=1399479]: |
0ms |
get settings: |
9ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
136ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
38ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 234ms |
0 / 0 |