Skip to content

Commit

Permalink
Add System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers in a c…
Browse files Browse the repository at this point in the history
…ouple more places
  • Loading branch information
Numpsy committed Mar 10, 2024
1 parent 1d562ee commit 1ecd7cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Avalonia.FuncUI/Types.fs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace rec Avalonia.FuncUI
namespace Avalonia.FuncUI

open Avalonia
open Avalonia.Controls
open System
open System.Threading
open Avalonia.Data
open System.Diagnostics.CodeAnalysis

module Types =
module rec Types =

[<CustomEquality; NoComparison; Struct>]
type PropertyAccessor =
Expand Down Expand Up @@ -153,11 +153,11 @@ module Types =
abstract member ConstructorArgs: obj array with get
abstract member Outlet: (AvaloniaObject -> unit) voption with get

type IView<'viewType> =
type IView<[<DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)>]'viewType> =
inherit IView
abstract member Attrs: IAttr<'viewType> list with get

type View<'viewType> =
type View<[<DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)>]'viewType> =
{ ViewType: Type
ViewKey: string voption
Attrs: IAttr<'viewType> list
Expand Down

0 comments on commit 1ecd7cb

Please sign in to comment.