/// <summary> /// Initializes a new instance of the <see cref="QuackingDictionaryDebugView"/> class. /// </summary> /// <param name="dictionary">The dictionary.</param> public QuackingDictionaryDebugView(QuackingDictionary dictionary) { this.items = dictionary.items; }
private void WarnIfNull(QuackingDictionary row, string field) { if (row[field] == null) { Warn("Null in {0}! Type: {1}", field, row["type"]); } }
private static bool Equal(QuackingDictionary newRow, QuackingDictionary oldRow) { var fields = new string[] { "use", "lastused", "count", "created", "name", "server", "database", "schema", "dropped" }; return fields.All(field => newRow[field].Equals(oldRow[field])); }