|
I am interested in the most efficient way to store values from an object array containing dates, string, double, integer, Boolean, and null values. The values will then be restored back to the array by reading the file at a later date.
BinaryFormatter is very slow and inefficient and looking for another solution.
Need to stay in .NET Framework 3.5
Ken Eldridge
|
|
|
|
|
When I want to write out data quickly and efficiently I tend to implement the ISerializable interface directly on the classes I want to serialise and manage the writing out myself. The reason the BinaryFormatter is so slow is because it's using reflection to work out what to serialize. By specifying this yourself you save the formatter from having to do this which results in a much faster implementation.
|
|
|
|
|
Pete, are you available for paid consulting? If so how can I reach you to discuss project scope?
|
|
|
|
|
I need to pass an array from C#.net application to oracle stored procedure. Can anyone please let me know how to go about it? Also, which OracleType type do I use in C# when passing input parameter to stored procedure?
FYI, am using System.Data.Common.DbConnection in my C#.
|
|
|
|
|
Asking the same question again as you asked yesterday isn't going to get you an answer any faster. People answer the questions on a volunteer only basis, so it's rude to attempt to bump your post like this.
|
|
|
|
|
Did you try to pass it as XML, as suggested yesterday?
Bastard Programmer from Hell
|
|
|
|
|
Yes. I tried it by passing it as XML and works fine.
Thanks a lot.
|
|
|
|
|
I am using System.Data.Common.DbConnection.
How can i pass List<> to oracle stored procedure.
|
|
|
|
|
I haven't used Oracle in quite some time.. but I doubt that it'll know what to do with a List<>.
Pass it either as a table (if Oracle has a table-datatype for your param) or as XML in a single string.
Bastard Programmer from Hell
|
|
|
|
|
I am using System.Data.Common.Dbconnection to connect with my oracle database.
How can i pass List<> as a parameter to Oracle Stored procedure.
|
|
|
|
|
Hey guys,
Here are the complete results from a poll published by Pluralsight last week, asking their users which ORM tool for .NET they think is the best. Although the results are somewhat predictable, it's interesting to take a look at the picture.
Do you use any ORM tool and if so, which one do you prefer? What are the most important features of an Object-Relational Mapper for you?
modified 23-Apr-12 6:47am.
|
|
|
|
|
Hi,
I prefer Entity Framework despite the fact that I have used LINQ to SQL a lot. I prefer Entity because of it's advantages over LINQ. I prefer Microsoft based framework rather than third party frameworks.
Cheers
|
|
|
|
|
I like PetaPoco because it is simple and tweakable.
|
|
|
|
|
hello every body :
I need your help if you can
I want to to add information to reportViewer from a DataGrid.
thanks.
|
|
|
|
|
Hi,
Could you please describe more. I presume you want to send GridView's data to the ReportViewer?
|
|
|
|
|
hi all,
i have a an ActiveX object for the downloading my componet to the client machine.Its working fine as.html page,but my problem is when i placed it in to .aspx page its not working.
Please suggest me
|
|
|
|
|
Try the ASP.NET forum.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
|
Your question makes no sense at all. How do we know what your requirements are? How it will be used in your application? There is no "best", only what works for your requirements and skills.
Failure is not an option; it's the default selection.
|
|
|
|
|
OK,
I have a pair of a kind(key , val).
I need to store them in sorted order by the key value.
I need the option of searching also.
Thanks.
|
|
|
|
|
SortedDictionary<TKey, TValue>
|
|
|
|
|
columbos14927 wrote: What is the best data structure .Net suggest if i want to store a couple of a
kind (int , int) when the first int is the key of the couple?
Dictionary<int, int>
Bastard Programmer from Hell
|
|
|
|
|
If you need fast lookup based on the key value, a Dictionary is highly recommended. It is fast, however it does not preserve order.
If order is most relevant to you, you might opt for a List of KeyValuePair objects. However I can't easily imagine a situation where I would. Alternatively, you could go for a Dictionary plus a List that holds the keys in the order you want them. I do this occasionally.
|
|
|
|
|
Using the KeyValuePair class[^] should help you solve your problem.
|
|
|
|
|
You have stated in another response you want it to be sorted too?
if so, how about the SortedDictionary[^]?
|
|
|
|