A
Aquila Deus
Hi all!
I wondering if there is any method to override object/class within a
context, like this:
// MyNullFileInfo is derived from FileInfo
let (System.IO.FileInfo = MyNullFileInfo) {
FileInfo fi = new FileInfo(); // create a MyNullFileInfo.
fi...... //
// call some other method that use FileInfo, and they will also use
// MyNullFileInfo instead
}
I wondering if there is any method to override object/class within a
context, like this:
// MyNullFileInfo is derived from FileInfo
let (System.IO.FileInfo = MyNullFileInfo) {
FileInfo fi = new FileInfo(); // create a MyNullFileInfo.
fi...... //
// call some other method that use FileInfo, and they will also use
// MyNullFileInfo instead
}