diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2010-11-22 01:11:57 +0300 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2010-11-22 01:11:57 +0300 |
commit | 24eb146c74d86523ca612893296a4cee565e1819 (patch) | |
tree | 629bd86469d5def62fb4e54d930c28b8eae6aba1 /README | |
parent | 0eeedc4d752cab3ffa00418e06401701f3d82970 (diff) |
Add 'CommonTypeInference'.
Diffstat (limited to 'README')
-rw-r--r-- | README | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -172,7 +172,8 @@ A: They don't use any particular format. They're merely intended as a debugging Currently .ToString() usually matches .ReflectionName, but that may change in the future.
-Q: Why are there extension methods IType.IsEnum() and IType.IsDelegate(), but no IType.IsStruct()'
or IType.IsInterface()?
+Q: Why are there extension methods IType.IsEnum() and IType.IsDelegate(), but no IType.IsStruct()
+ or IType.IsInterface()?
A: Because if you're asking whether a type is a struct, it's very likely that you're asking the
wrong question.
@@ -181,7 +182,7 @@ A: Because if you're asking whether a type is a struct, it's very likely that yo so important in the world of types.
If whatever you are doing works with struct-types, then it likely will also work with
- enum-types, and also with type parameters constraint to be a value-type.
+ enum-types, and also with type parameters with a value-type constraint.
So instead of asking IsStruct(), you really should be asking: IType.IsReferenceType == false
Enums and delegates are special because you can do special things with those types
|