// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET
Document doc = new Document();
// Shows how to get names of all merge fields in a document.
string[] fieldNames = doc.MailMerge.GetFieldNames();