mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(ViewPointer.Value): check for disposed state.
This commit is contained in:
parent
ddff997522
commit
bd037316c3
@ -778,7 +778,16 @@ namespace GameRes
|
||||
m_ptr = m_view.GetPointer (offset);
|
||||
}
|
||||
|
||||
public byte* Value { get { return m_ptr; } }
|
||||
public byte* Value
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!_disposed)
|
||||
return m_ptr;
|
||||
else
|
||||
throw new ObjectDisposedException ("Access to disposed ViewPointer object failed.");
|
||||
}
|
||||
}
|
||||
|
||||
#region IDisposable Members
|
||||
bool _disposed = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user