public static void SetQQConnectProperties( this IDictionary <string, string> @this, QQConnectProperties qqConnectProperties) { if (@this == null) { throw new ArgumentNullException(nameof(@this)); } if (qqConnectProperties == null) { throw new ArgumentNullException(nameof(qqConnectProperties)); } @this[QQConnectProperties.Key] = qqConnectProperties.ToJson(); }