소스 검색

Addressed PR feedback

Tig 1 년 전
부모
커밋
f58ba2941c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Terminal.Gui/View/IDesignable.cs

+ 1 - 1
Terminal.Gui/View/IDesignable.cs

@@ -12,7 +12,7 @@ public interface IDesignable
     /// <param name="context">Optional arbitrary, View-specific, context.</param>
     /// <typeparam name="TContext">A non-null type for <paramref name="context"/>.</typeparam>
     /// <returns><see langword="true"/> if the view successfully loaded demo data.</returns>
-    public bool EnableForDesign<TContext> (in TContext context) where TContext : notnull => EnableForDesign ();
+    public bool EnableForDesign<TContext> (ref readonly TContext context) where TContext : notnull => EnableForDesign ();
 
     /// <summary>
     ///     Causes the View to enable design-time mode. This typically means that the view will load demo data and