Ralf de Kleine
Ralf de Kleine

Reputation: 11734

Best way to go about file properties

Whats the best way to read/write file properties (like author, description, etc) in C#? I can use dsofile.dll to accomplish this but I wonder if this is the right way to go. (being unmanaged code?)

Any ideas?

Upvotes: 5

Views: 245

Answers (1)

Martin v. Löwis
Martin v. Löwis

Reputation: 127457

Microsoft explicitly recommends dsofile.dll for use with .NET. Not sure why you think this would be inappropriate - it ultimately uses the very code that other structured file readers also use. Reimplementing this in managed code would be error-prone, and likely does more harm than good.

Upvotes: 5

Related Questions