c#-to-f#
How do I create a class instance and fill properties in F#?
In C#, I can: var n = new Person() { FirstNa开发者_StackOverflow中文版me = \"John\", LastName = \"Smith\"[详细]
2023-02-08 20:45 分类:问答how to use c# struct from f#
what\'s the syntax for using a c# struct in f#? how do i assign it\'s fields values? thanks! update: looks like i can declare the variable itself mutable and then set it\'s fields using the <-[详细]
2023-02-07 23:22 分类:问答How can I add attributes to a public method in an F# type?
I\'m just trying out F# for the first time, and playing around with its interop with C# projects. I have custom attributes defined in a C# project, and added a reference to that project in my new F#[详细]
2023-02-06 06:25 分类:问答F# Type Annotation For Lists
In F# what is the type anno开发者_如何学JAVAtation for a typed list (e..g list of int)? With a simple function I can do annotations as follows:[详细]
2023-02-04 06:09 分类:问答XNA 4.0 - What happens when the window is minimized?
I\'m learning F#, and decided to try making simple XNA games for windows using F# (pure enthusiasm) , and got a window with some images showing up.[详细]
2023-02-01 15:34 分类:问答simple c# class to f#
How would this class look in f#? public class myClass : baseClass { public myClass() { this.someVariable = \"test\";[详细]
2023-02-01 06:25 分类:问答Formatting fluent/method chaining code from C# in F#
Some apis like Ninject use fluent style apis, example: Bind<ISomething>() .To<Somethin开发者_如何学JAVAg>()[详细]
2023-01-27 21:09 分类:问答Can F# teach me good functional programming practices?
I am planning to immerse myself in thefunctional programming paradigm and make the thought process second nature to me. The .Net/Mono is the only framework/objectmodel I am familiar with and I dont wa[详细]
2023-01-26 00:48 分类:问答Async socket programming and F#
I have a WCF service, which works with sockets async, I have some performance issue so I decided to refactor the code, I read some articles about the ease of use of F# for async and multi threading an[详细]
2023-01-21 12:17 分类:问答In F# how can I produce an expression with a type of Func<obj>?
I\'m working with an api that requires a value of type Func. (Specifically, I\'m tryi开发者_如何学运维ng to call ModelMetadataProviders.Current.GetMetadataForType().[详细]
2023-01-07 04:15 分类:问答