an>
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code {
    [Inject] <span class="keyword">public</span> IModalService ModalService { <span class="keyword">get</span>; <span class="keyword">set</span>; }

    <span class="keyword">public</span> Task InstantiateModal()
    {
        <span class="keyword">return</span> ModalService.Show&lt;ModalServiceOptionsExample&gt;( <span class="string">&quot;Override Options Example&quot;</span>, <span class="keyword">new</span> ModalInstanceO