ネットコアの戻り値

 

 

//指定类下的子类
タイプhelloType = typeof演算(のActionResult)。 一覧<タイプ>タイプ= 新しいリスト<タイプ> (); foreachのVARのアセンブリAppDomain.CurrentDomain.GetAssemblies()) { foreachのVARのタイプassembly.GetTypes()) { 場合(helloType.IsAssignableFrom(タイプ)) { 場合(type.IsClass &&!type.IsAbstract) { タイプ。 (タイプ)を追加します。 } } } } のためにint型 I = 0 I ++; I <types.Count { sb.AppendLine(タイプ[I] .nameの)。 } VAR RET = sb.ToString()。

 

おすすめ

転載: www.cnblogs.com/enych/p/11469986.html