static public ConstructorInfo GetNativeConstructorInfo(this ConstructorInfo item) { ForeignConstructorInfo foreign_constructor_info; if (item.Convert <ForeignConstructorInfo>(out foreign_constructor_info)) { return(foreign_constructor_info.GetNativeConstructorInfo()); } return(item); }
static public ConstructorInfoEX GetConstructorInfoEX(ConstructorInfo constructor_info) { ConstructorInfoEX cast; if (constructor_info != null) { if (constructor_info.Convert <ConstructorInfoEX>(out cast)) { return(cast); } return(GET_CONSTRUCTOR_INFO_EX.Fetch(constructor_info)); } return(null); }