protected static int StoreUserPropertiesForMethodMessage(IMethodMessage msg, ref ArrayList argsToSerialize) { IDictionary properties = msg.Properties; MessageDictionary messageDictionary = properties as MessageDictionary; if (messageDictionary != null) { if (!messageDictionary.HasUserData()) return 0; int num = 0; foreach (DictionaryEntry @internal in messageDictionary.InternalDictionary) { if (argsToSerialize == null) argsToSerialize = new ArrayList(); argsToSerialize.Add((object) @internal); ++num; } return num; } int num1 = 0; foreach (DictionaryEntry dictionaryEntry in properties) { if (argsToSerialize == null) argsToSerialize = new ArrayList(); argsToSerialize.Add((object) dictionaryEntry); ++num1; } return num1; }
// Token: 0x06005A08 RID: 23048 RVA: 0x0013B0A3 File Offset: 0x001392A3 public MessageDictionaryEnumerator(MessageDictionary md, IDictionary hashtable) { this._md = md; if (hashtable != null) { this._enumHash = hashtable.GetEnumerator(); return; } this._enumHash = null; }
public MessageDictionaryEnumerator(MessageDictionary md, IDictionary hashtable) { this._md = md; if (hashtable != null) { this._enumHash = hashtable.GetEnumerator(); } else { this._enumHash = (IDictionaryEnumerator)null; } }
public MessageDictionaryEnumerator(MessageDictionary md, IDictionary hashtable) { this._md = md; if (hashtable != null) { this._enumHash = hashtable.GetEnumerator(); } else { this._enumHash = null; } }
} // UndoFixupArg // returns number of entries added to argsToSerialize protected static int StoreUserPropertiesForMethodMessage( IMethodMessage msg, ref ArrayList argsToSerialize) { IDictionary properties = msg.Properties; MessageDictionary dict = properties as MessageDictionary; if (dict != null) { if (dict.HasUserData()) { int co = 0; foreach (DictionaryEntry entry in dict.InternalDictionary) { if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(entry); co++; } return(co); } else { return(0); } } else { // FUTURE: Exclude special headers such as __Uri, as those // are also transferred through other means. int co = 0; foreach (DictionaryEntry entry in properties) { if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(entry); co++; } return(co); } } // StoreUserPropertiesForMethodMessage
[System.Security.SecurityCritical] // auto-generated protected static int StoreUserPropertiesForMethodMessage( IMethodMessage msg, ref ArrayList argsToSerialize) { IDictionary properties = msg.Properties; MessageDictionary dict = properties as MessageDictionary; if (dict != null) { if (dict.HasUserData()) { int co = 0; foreach (DictionaryEntry entry in dict.InternalDictionary) { if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(entry); co++; } return(co); } else { return(0); } } else { // < int co = 0; foreach (DictionaryEntry entry in properties) { if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(entry); co++; } return(co); } } // StoreUserPropertiesForMethodMessage
// Helper to marshal properties internal static int MarshalProperties(IDictionary dict, ref ArrayList args) { IDictionary serDict = dict; int count = 0; MessageDictionary msgDict = dict as MessageDictionary; if (null != msgDict) { if (msgDict.HasUserData()) { serDict = msgDict.InternalDictionary; if (null != serDict) { foreach (DictionaryEntry e in serDict) { if (null == args) { args = new ArrayList(); } args.Add(e); count++; } } } } else { if (null != dict) { foreach (DictionaryEntry e in serDict) { if (null == args) { args = new ArrayList(); } args.Add(e); count++; } } } return(count); }
protected static int StoreUserPropertiesForMethodMessage(IMethodMessage msg, ref ArrayList argsToSerialize) { IDictionary properties = msg.Properties; MessageDictionary messageDictionary = properties as MessageDictionary; if (messageDictionary == null) { int num = 0; foreach (object obj in properties) { DictionaryEntry dictionaryEntry = (DictionaryEntry)obj; if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(dictionaryEntry); num++; } return(num); } if (messageDictionary.HasUserData()) { int num2 = 0; foreach (object obj2 in messageDictionary.InternalDictionary) { DictionaryEntry dictionaryEntry2 = (DictionaryEntry)obj2; if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(dictionaryEntry2); num2++; } return(num2); } return(0); }
protected static int StoreUserPropertiesForMethodMessage(IMethodMessage msg, ref ArrayList argsToSerialize) { IDictionary properties = msg.Properties; MessageDictionary dictionary2 = properties as MessageDictionary; if (dictionary2 != null) { if (!dictionary2.HasUserData()) { return(0); } int num = 0; foreach (DictionaryEntry entry in dictionary2.InternalDictionary) { if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(entry); num++; } return(num); } int num2 = 0; foreach (DictionaryEntry entry2 in properties) { if (argsToSerialize == null) { argsToSerialize = new ArrayList(); } argsToSerialize.Add(entry2); num2++; } return(num2); }
public DictionaryEnumerator (MessageDictionary methodDictionary) { _methodDictionary = methodDictionary; _hashtableEnum = (_methodDictionary._internalProperties != null) ? _methodDictionary._internalProperties.GetEnumerator() : null; _posMethod = -1; }
public DictionaryEnumerator(MessageDictionary methodDictionary) { _methodDictionary = methodDictionary; _hashtableEnum = (_methodDictionary._internalProperties != null) ? _methodDictionary._internalProperties.GetEnumerator() : null; _posMethod = -1; }