来自here的使用IDeserializationCallback接口的示例。
void IDeserializationCallback.OnDeserialization(Object sender)
{
// After being deserialized, initialize the m_area field
// using the deserialized m_radius value.
m_area = Math.PI * m_radius * m_radius;
}但是这个方法签名对我来说并不熟悉。.表示法让我觉得这里发生了一些“棘手”的事情。
这里发生什么事情?
发布于 2011-06-16 06:20:26
这称为explicit implementation of interface。
https://stackoverflow.com/questions/6365034
复制相似问题