Upgrade to Pro — share decks privately, control downloads, hide ads and more …

F#’s Type Providers: The future of meta-program...

F#’s Type Providers: The future of meta-programming in .NET

Robert Pickering

May 16, 2014
Tweet

More Decks by Robert Pickering

Other Decks in Programming

Transcript

  1. type User = { [JsonProperty(PropertyName = "user_name")] Username: string [JsonProperty(PropertyName

    = "first_name")] FirstName: string [JsonProperty(PropertyName = "last_name")] LastName: string }
  2. type ITypeProvider = inherit IDisposable abstract GetStaticParameters: Type -> ParameterInfo

    [] abstract ApplyStaticArguments: Type * string * obj [] -> Type abstract GetNamespaces: unit -> IProvidedNamespace [] abstract GetInvokerExpression: MethodBase * ParameterExpression [] -> Expression abstract GetGeneratedAssemblyContents: System.Reflection.Assembly -> byte[] abstract Invalidate: IEvent<EventHandler,EventArgs>