12345678910111213141516171819202122232425262728 |
- #if INTERACTIVE
- #load "../../src/ProvidedTypes.fsi" "../../src/ProvidedTypes.fs"
- #endif
- namespace FSharp.Data
- open FSharp.Data.Tdms
- module Helpers =
- type RawDataHelper =
- static member RawData<'T>(group, channel, index) =
- File.tryGetRawData<'T> group channel index
- |> Option.defaultValue [||]
- let rawData ty group channel index =
- let generic =
- typeof<RawDataHelper>.GetMethod "RawData"
- let concrete = generic.MakeGenericMethod [| ty |]
- concrete.Invoke(null, [| group; channel; index |])
- #if !IS_DESIGNTIME
- // Put the TypeProviderAssemblyAttribute in the runtime DLL, pointing to the design-time DLL
- [<assembly:CompilerServices.TypeProviderAssembly("FSharp.Data.Tdms.DesignTime.dll")>]
- do ()
- #endif
|