mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-06 14:38:40 +00:00
Split WoofWare.PawPrint.Domain into a new subtree (#41)
This commit is contained in:
21
WoofWare.PawPrint.Domain/EventDefn.fs
Normal file
21
WoofWare.PawPrint.Domain/EventDefn.fs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace WoofWare.PawPrint
|
||||
|
||||
open System.Reflection
|
||||
open System.Reflection.Metadata
|
||||
|
||||
type EventDefn =
|
||||
{
|
||||
Name : string
|
||||
Attrs : EventAttributes
|
||||
}
|
||||
|
||||
[<RequireQualifiedAccess>]
|
||||
module EventDefn =
|
||||
|
||||
let make (mr : MetadataReader) (event : EventDefinition) : EventDefn =
|
||||
let name = mr.GetString event.Name
|
||||
|
||||
{
|
||||
Name = name
|
||||
Attrs = event.Attributes
|
||||
}
|
Reference in New Issue
Block a user