As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need to return a collection of items with the push-model (as opposed to pull, like IEnumerable). However, I'm not sure if I should use IObservable from reactive extensions or ISourceBlock from TPL Dataflow.
They seem very similar, under what circumstances should one choose one over the other?
Basically, I think the answer comes down to how are you going to use the results. If you want to process them using TPL Dataflow, return ISourceBlock<T>. If you're going to process them using Rx, use IObservable<T>.
If you don't know, I think it's better to return ISourceBlock<T>, because it can be easily converted to IObservable<T>.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I was wondering what is the best way to go on this one. My intention is to better learn C# by making a game and an appropriate GUI.
My game would have been something like ZooTycoon (http://www.gamespot.com/zoo-tycoon/)
but much more simple.
As I really don't intend to learn a new language (like DirectX) only to write GUI for this application I would prefer something simpler but handy. Does that even exist?
I would recommend looking at SlimDX or SharpDX.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I presume that it is something like MVC4 + LINQ (or maybe NHibernate?)
I'm taking a dive into the .NET world (again) and would like to go with the best. Any tips and opinions?
There isn't an exact equivalent. You could use a combination of ASP.NET MVC + Entity Framework (NHibernate) if you want.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
A simple question: Why there isn't any NotImplementedAttribute in C#?
You can always throw the exception, but I think it would be nice for this to work as the
ObsoleteAttribute -> you get an warning for using that method.
Ok, you have a method with this attribute, and when you implement it you have to remove the attribute by hand, but I think this is safer than using methods with throw new NotImplementedException() inside...and wait for them to get called.
I remember reading that the Obsolete is hard coded into the compiler, but maybe there is some spare room for this one :)
This is just my opinion, maybe I am wrong. But it's something that I would like to see.
Thanks
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Is there a free .NET implementation of an algorithm that calculates alpha-shapes (aka concave-hull)? Alternatively, an implementation of this algorithm.
I know of this and this thread, but there's nothing specific for the .NET eco-system.
If the answer is simply 'use CGAL + a c# wrapper', then can you please point me to the wrapper as I could not find one, and a sample on how to use CGAL for alpha shapes. The CGAL reference manual on alpha-shapes is difficult to follow. Specifically, the goal is to take a set of lon/lat points and find an "outline".
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does anyone know of an open source financial library that implements Yield To Maturity and other fixed income calculations? The library needs to be callable from .Net.
Here is a .NET implementation of all of Excel's financial functions, including yield to maturity.
Have you looked at Quantlib? Seems to offer a wide array of pricing tools and is callable from .Net, I believe. There's also a port to Java called JQuantLib as well, though I don't believe it implements everything in Quantlib quite yet.