Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2010-11-22 01:11:57 +0300
committerDaniel Grunwald <daniel@danielgrunwald.de>2010-11-22 01:11:57 +0300
commit24eb146c74d86523ca612893296a4cee565e1819 (patch)
tree629bd86469d5def62fb4e54d930c28b8eae6aba1 /README
parent0eeedc4d752cab3ffa00418e06401701f3d82970 (diff)
Add 'CommonTypeInference'.
Diffstat (limited to 'README')
-rw-r--r--README5
1 files changed, 3 insertions, 2 deletions
diff --git a/README b/README
index 473cc66f..0830a4ce 100644
--- a/README
+++ b/README
@@ -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