/// <summary> /// Serializes an EntryPointOperation object to its JSON representation. /// </summary> public static void SerializeToJson(EntryPointOperation entryPoint, Stream stream) { var writer = new SimpleJsonWriter(stream); var serializer = new Serializer <SimpleJsonWriter>(typeof(EntryPointOperation)); serializer.Serialize(entryPoint, writer); writer.Flush(); stream.Flush(); stream.Position = 0; }
/// <summary> /// Determine whether the values of two object instances are equal. /// </summary> public static bool ValueEquals(this EntryPointOperation entryPointA, EntryPointOperation entryPointB) { if (!entryPointA.Name.Equals(entryPointB.Name)) { return(false); } if (!AreCollectionsEqual(entryPointA.Arguments, entryPointB.Arguments, ValueEquals)) { return(false); } return(true); }