我们正在使用IoC并使用它公开我们的日志记录。我们正在使用Common.Logging并且我已经为Common.Logging.FormatMessageHandler编写了一个匹配的委托(delegate),但我不知道如何从我们的委托(delegate)版本转换为Common.Loggingapi所期望的。这个问题看起来很相似,但我不明白如何从我实现的类型转换为我想调用的已知类型。Dynamicallycastingonetypeofdelegatetoanother这是我的委托(delegate)签名:publicdelegatestringFormatMessageHandler