public override object CreateInstance(object[] arguments) { object result = null; try { result = xamlTypeInvoker.CreateInstance(arguments); } catch (MissingMethodException) { result = xamlSerializer.ResolveInstance(xamlType.UnderlyingType, arguments); } if (result == null) { throw new MissingMethodException(); } return(result); }