varclient=newDeepLClient(apiKey);// Custom instructions let you provide free-text rules that// DeepL applies during translation — for example, enforcing// terminology conventions or formatting preferences.// ## Create a style rule listvarstyleRule=awaitclient.StyleRules.CreateStyleRuleListAsync(name:"Custom Instruction Demo",language:StyleRuleLanguage.En);// ## Add a custom instruction// Each instruction has a label and a prompt describing the rule:varinstruction=awaitclient.StyleRules.CreateCustomInstructionAsync(styleId:styleRule.StyleId,label:"Currency formatting",prompt:"Always place the currency symbol before the number (e.g. $100, €50).");// ## Retrieve the instructionvarretrieved=awaitclient.StyleRules.GetCustomInstructionAsync(styleId:styleRule.StyleId,instructionId:instruction.Id);// ## Add a source-language-specific instruction// You can optionally restrict an instruction to a specific// source language:vardeInstruction=awaitclient.StyleRules.CreateCustomInstructionAsync(styleId:styleRule.StyleId,label:"German compound nouns",prompt:"Keep German compound nouns as a single word in the translation.",sourceLanguage:"de");// ## Clean upawaitclient.StyleRules.DeleteCustomInstructionAsync(styleId:styleRule.StyleId,instructionId:deInstruction.Id);awaitclient.StyleRules.DeleteCustomInstructionAsync(styleId:styleRule.StyleId,instructionId:instruction.Id);awaitclient.StyleRules.DeleteStyleRuleListAsync(styleId:styleRule.StyleId);