예제 #1
0
 public ReflectionParameterViewModel(MethodViewModel parent, ParameterInfo info) : base(parent)
 {
     Info = info;
     if (info.ParameterType.IsByRef)
     {
         Type = new ReflectionTypeViewModel(info.ParameterType.GetElementType());
     }
     else
     {
         Type = new ReflectionTypeViewModel(info.ParameterType);
     }
 }
예제 #2
0
 public ParameterViewModel(MethodViewModel parent)
 {
     Parent = parent;
 }
예제 #3
0
 public SymbolParameterViewModel(MethodViewModel parent, IParameterSymbol symbol) : base(parent)
 {
     Symbol = symbol;
     Type   = new SymbolTypeViewModel(symbol.Type);
 }