diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-03-25 05:31:22 +0300 |
---|---|---|
committer | dotnet-bot <dotnet-bot@microsoft.com> | 2017-03-25 05:32:33 +0300 |
commit | ccc7b2da598f3e96ab7d359bb427763124927e1b (patch) | |
tree | 39953b2fe0e99ce7bf12ef3d2eab7b5a95a24af1 /src/System.Private.CoreLib/shared/System/Runtime | |
parent | c52917e860902593ef1f8795ac3327fd2dacc190 (diff) |
Fixed m_ prefixes in a few files from shared partition (#10473)
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Runtime')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Runtime/Serialization/ISafeSerializationData.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Serialization/ISafeSerializationData.cs b/src/System.Private.CoreLib/shared/System/Runtime/Serialization/ISafeSerializationData.cs index 12c2e34d0..5089d134c 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Serialization/ISafeSerializationData.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Serialization/ISafeSerializationData.cs @@ -69,7 +69,7 @@ namespace System.Runtime.Serialization // ... // realSerializedDataN // safeSerializationData -> this is the serialization data member of the parent type - // m_serializedState -> list of saved serialized states from subclasses responding to the safe + // _serializedState -> list of saved serialized states from subclasses responding to the safe // serialization event // RealTypeSerializationName -> type which is using safe serialization // Type: @@ -135,21 +135,21 @@ namespace System.Runtime.Serialization // // 1. Include a data member of type SafeSerializationManager: // - // private SafeSerializationManager m_safeSerializationManager; + // private SafeSerializationManager _safeSerializationManager; // // 2. Add a protected SerializeObjectState event, which passes through to the SafeSerializationManager: // // protected event EventHandler<SafeSerializationEventArgs> SerializeObjectState // { - // add { m_safeSerializationManager.SerializeObjectState += value; } - // remove { m_safeSerializationManager.SerializeObjectState -= value; } + // add { _safeSerializationManager.SerializeObjectState += value; } + // remove { _safeSerializationManager.SerializeObjectState -= value; } // } // // 3. Serialize the safe serialization object in GetObjectData, and call its CompleteSerialization method: // // { - // info.AddValue("m_safeSerializationManager", m_safeSerializationManager, typeof(SafeSerializationManager)); - // m_safeSerializationManager.CompleteSerialization(this, info, context); + // info.AddValue("_safeSerializationManager", _safeSerializationManager, typeof(SafeSerializationManager)); + // _safeSerializationManager.CompleteSerialization(this, info, context); // } // // 4. Add an OnDeserialized handler if one doesn't already exist, and call CompleteDeserialization in it: @@ -157,7 +157,7 @@ namespace System.Runtime.Serialization // [OnDeserialized] // private void OnDeserialized(StreamingContext context) // { - // m_safeSerializationManager.CompleteDeserialization(this); + // _safeSerializationManager.CompleteDeserialization(this); // } // // On the client side, using safe serialization is also pretty easy. For example: @@ -168,30 +168,30 @@ namespace System.Runtime.Serialization // [Serializable] // private struct TransparentExceptionState : ISafeSerializationData // { - // public string m_extraData; + // public string _extraData; // // void ISafeSerializationData.CompleteDeserialization(object obj) // { // TransparentException exception = obj as TransparentException; - // exception.m_state = this; + // exception._state = this; // } // } // // [NonSerialized] - // private TransparentExceptionState m_state = new TransparentExceptionState(); + // private TransparentExceptionState _state = new TransparentExceptionState(); // // public TransparentException() // { // SerializeObjectState += delegate(object exception, SafeSerializationEventArgs eventArgs) // { - // eventArgs.AddSerializedState(m_state); + // eventArgs.AddSerializedState(_state); // }; // } // // public string ExtraData // { - // get { return m_state.m_extraData; } - // set { m_state.m_extraData = value; } + // get { return _state._extraData; } + // set { _state._extraData = value; } // } // } // |