Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers in a … #399

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="34.0.1" />
<TrimmerRootAssembly Include="Bogus" />
</ItemGroup>

</Project>
Loading