Thanks for your reply.
I just wondered if there was a csharp reason for making it onto the list
of extensions used here:
http://msdn.microsoft.com/en-us/library/aa378870(VS.85).aspx
There's nothing potentially executable about .cs files is there?
Well, you can always compile them and then execute them. Some uses of .cs
files might actually include shipping custom .cs files or auto-generating
them at the client computer and then compiling them there. (Ill-advised,
IMHO...but it wouldn't surprise me if there's at least one program out
there that does that).
Another possibility is that the ".cs" extension found its way onto the
list by virtue of something other than its relationship to VS/C#. There's
nothing to ensure that file extensions are unique to a single program, and
that lack of uniqueness is more of a problem the shorter the file
extension.
For example, a Google search suggests there are at least eight or nine
different possible uses for ".cs" as an extension, including as "Czech
language translation file", which could in fact be considered an OS
component depending on how it's used (I'm not expert enough in the
mechanisms of localizations, so I don't know how relevant, if at all, that
is).
Also, thought it was more relevant to people who might lose files.
Thought what was more relevant? System Restore? Or something else?
System Restore is about recovering the system to a known-good state after
something has happened to the executable parts, such as software
installation, corruption, malware, etc. It's not really about losing
files.
In any case, it seems to me that the really crucial question, which has
already been asked but not answered, is where were your .cs files when
they got "restored"? System Restore shouldn't be affecting files in user
document directories, and your .cs files should only be in your user
document directories. So the fact that the .cs extension is on the list
of "files System Restore monitors" shouldn't be relevant; your .cs files
should be safe by virtue of being outside the area of the disk that System
Restore manages.
Pete