Enum Naming Convention – Plural

Microsoft recommends using singular for Enums unless the Enum represents bit fields (use the FlagsAttribute as well). See Enumeration Type Naming Conventions (a subset of Microsoft’s Naming Guidelines). To respond to your clarification, I see nothing wrong with either of the following: or

Can a Byte[] Array be written to a file in C#?

Based on the first sentence of the question: “I’m trying to write out a Byte[] array representing a complete file to a file.” The path of least resistance would be: Documented here: System.IO.File.WriteAllBytes – MSDN

Print Pdf in C#

A very straight forward approach is to use an installed Adobe Reader or any other PDF viewer capable of printing: Another way is to use a third party component, e.g. PDFView4NET

How do I save a stream to a file in C#?

I have a StreamReader object that I initialized with a stream, now I want to save this stream to disk (the stream may be a .gif or .jpg or .pdf). Existing Code: I need to save this to disk (I have the filename). In the future I may want to store this to SQL Server. … Read more