Creating instance of type without default constructor in c#

it2022-05-05  99

Use this override of the CreateInstance method:

public static object CreateInstance(

  Type type,

  params object[] args

)

creates an instance of the specified type using the constructor that best matches the specified parameters.

See: http://msdn.microsoft.com/en-us/library/wcxyzt4d.aspx

很喜欢这样的做法!值得记牢!

转载于:https://www.cnblogs.com/hongjiumu/archive/2012/08/22/2651307.html

相关资源:各显卡算力对照表!

最新回复(0)