c# method
C++
code posted
by
ivorobiev
created at 11 Sep 17:40, updated at 14 Sep 23:26
Edit
|
Back
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 29 30 31 |
public GenericType(Type type) { _ref typeParameters = new List<GenericTypeParam>(); if (_reflectedType.IsGenericType) { isGeneric = true; var paramsList = _reflectedType.GetGenericArguments(); foreach (var param in paramsList) { var p = new GenericTypeParam(); p.Name = param.Name; p.isGeneric = param.IsGenericType; if (param.BaseType != null) p.BaseType = param.BaseType.FullName; p.Type = param; typeParameters.Add(p); } } else { isGeneric = false; } |
835 Bytes in 2 ms with coderay