string UniversalStreamRecordCollectionToString(Collection <UniversalStreamRecord> collection, PSStreamNameEnum streamNameEnum) { string streamName = streamNameEnum.ToString().ToUpper(); string streamID = ((int)streamNameEnum).ToString(); string objectsFoundMessage = string.Format("Objects in stream {0} (Stream ID {1}):", streamName, streamID); string noObjectsFoundMessage = string.Format("Nothing in stream {0} (Stream ID {1})", streamName, streamID); return(UniversalStreamRecordCollectionToString(collection, objectsFoundMessage, noObjectsFoundMessage)); }
string UniversalStreamRecordCollectionToString(Collection<UniversalStreamRecord> collection, PSStreamNameEnum streamNameEnum) { string streamName = streamNameEnum.ToString().ToUpper(); string streamID = ((int)streamNameEnum).ToString(); string objectsFoundMessage = string.Format("Objects in stream {0} (Stream ID {1}):", streamName, streamID); string noObjectsFoundMessage = string.Format("Nothing in stream {0} (Stream ID {1})", streamName, streamID); return UniversalStreamRecordCollectionToString(collection, objectsFoundMessage, noObjectsFoundMessage); }