|
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=39607164&tid=1399479]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
139ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
others: | 314ms |
total: | 530ms |
0 / 0 |