Exemplo n.º 1
0
 public virtual object CreateInstance(object[] arguments)
 {
     ThrowIfUnknown();
     if (!_xamlType.UnderlyingType.IsValueType && (arguments == null || arguments.Length == 0))
     {
         object result = DefaultCtorXamlActivator.CreateInstance(this);
         if (result != null)
         {
             return(result);
         }
     }
     return(CreateInstanceWithActivator(_xamlType.UnderlyingType, arguments));
 }
Exemplo n.º 2
0
 public virtual object CreateInstance(object[] arguments)
 {
     this.ThrowIfUnknown();
     if (!this._xamlType.UnderlyingType.IsValueType && ((arguments == null) || (arguments.Length == 0)))
     {
         object obj2 = DefaultCtorXamlActivator.CreateInstance(this);
         if (obj2 != null)
         {
             return(obj2);
         }
     }
     return(this.CreateInstanceWithActivator(this._xamlType.UnderlyingType, arguments));
 }