c#-to-f#
Return an FSharpFunc from F# to C#
I want to write a function in F#, that exposes the following t开发者_C百科ype signature to C#: public static FSharpFunc<FSharpFunc<Unit,Unit>,Unit> foo(Action<Action> f)[详细]
2023-04-12 12:38 分类:问答No argument names in abstract declaration?
This is the typical declaration of an abstract member in F#: abstract member createEmployee : string -> string -> Employee[详细]
2023-04-06 17:31 分类:问答F# discriminated unions versus C# class hierarchies
I have the following code: public abstract class A ... public class B : A ... public class C : A ... void my_fct(A x) {[详细]
2023-04-03 11:05 分类:问答Convert C# code to F# code: lists manipulation
Good morning at all, first I present myself: my name is Mattia and I\'m a student in Computer Science.[详细]
2023-03-31 05:11 分类:问答F# top level do binding
I have a file with a module with some routines that take parameters and return unit, these routines have side-effects.I noticed that when accessing these f# routines from c# they\'re actually properti[详细]
2023-03-14 21:00 分类:问答can't work with XElement like with IEnumerable
C# var xArr = XDocument.Load(FileName) .Element(\"dataWorkers\") .Elements(\"worker\"); int i = 0; foreach (XElement item in xArr)[详细]
2023-03-01 12:32 分类:问答Unit testing C# implementation with F#-based testing tools
Outside of things syntactical, are there scenarios where it would be advantageous to write unit tests using F# for Greenfield C# code?[详细]
2023-02-26 11:08 分类:问答F# Equivalent of Destructor
I am t开发者_运维百科ranslating a C# class that wraps an unmanaged library to F#. I have run into the seemingly simple problem of rewriting the destructor that follows.[详细]
2023-02-25 06:18 分类:问答Mono : is there a System.Tuple?
I am trying to do some interop between C# and F# in Mono. Is there a System.Tuple in Mono C#? I can see the one in Mono.CSharp, but that doesn\'t seem to be the same type as F# (a\' * b\'). So,[详细]
2023-02-17 18:35 分类:问答Implementing an interface in f#
Here is my c# interface: public interface ITemplateService { string RenderTemplate(object model, string templateName);[详细]
2023-02-17 00:23 分类:问答