Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to programming and everyone discuss about array. I have gone through array in C# and tried it in console. If someone can say me where do we exactly use array in real time software development. I know its a basic question but couldn't figure it out. Thanks in advance
You would typically use an array or a list where you have multiple instances of data with the same structure. Imaging for instance that you want to display a list of all users in your system then behind the scenes you might want to hold them as User[] users = new User[] rather than User user1, User user2, etc... It makes it a lot easier to do the same thing to (or with) each element of the list e.g.foreach(User user in users){...} than if you had to hold each entry separately.
You use arrays wherever you need to maintain lists of anything at all. For example, if I need to display a list of users in an organization, I could hold all in an array of objects.
For more information: https://en.wikipedia.org/wiki/Array_data_structure
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I am writing a C# application that uses Azure table storage. I would like to search through an Azure table and order the results by the values of one column (in my case this column contains a timestamp in integer format). The table might contain many records, so I need to be able to return one page of results at a time.
It is important to note that sorting the results in memory is not good enough. I want to be able to get results one page at a time and have elements sorted across all pages.
I have been using the Azure.Data.Tables NuGet, and it does not appear to support this. I can give it an OData filter expression but not an orderby expression.
Can I achieve this another way?
This SO thread suggests that it is not possible, but it is more than 10 years old, so it is possible that something has changed since then.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I am currently working on a C# project in which I got a couple of WinForms (currently 5 windows).
From these windows, I need to save all the information that has been filled(all the text from textBoxes, comboBoxes, dataGridViews, checkBoxes). In each window, there is control containing data I will need later to generate a script.
So my question is: What is the best approach for the purpose to save the value of the variables and to get them passed between the WinForms?
For now, I am storing the data from the controls in variables, but I believe there is much better and efficient way of doing this. (And also the variables are passing between the screens. So basically if I have in screen1 variable A, I need to access it from screen2 where there is another variable B, screen 3 needs A and B and variable C appears there, and so on ....)
I've been thinking about:
Saving the data in a text file(which I would like to NOT do it.)
User Settings (but I am pretty sure I cannot store the data from the grid in it. If I am mistaken I will appreciate letting me know!)
And the last one I mentioned I am using - passing variables between the WinForms.
You can create dto-class for each window, put data from window's control to corresponding dto and then serialize it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a requirement where i need to get all possible typos(if not all most) that can occur for a possible word. For example (word : user). User can type "usre" or "yser" something like that.
Currently i don't have anything in mind as to where i start. If anybody has already faced the similar situation and came with the solution, it would be helpful if you can help get kick start
Thanks in Advance.
Here is a wild idea.
Create a graph using the layout of a QWERTY keyboard (assuming that is the layout the user will be using), where every key will be a node and every node will be connected to the adjacent keys/nodes. For instance, the the node s will be connected with q,w,e,a,d,z,x and c.
Now, for a given word, substitute one or more letter with all neighboring nodes from the graph. So, the word user can produce uwer, uaer, uder and so on.
I hope this will help you.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm looking for advice and experiences about proper way to create outputs from one separate application to other independent application which must take this value for own implementation conditions. to make it clearer in primitive way for example output application writes some undated value to the text file, and another running application with available path to this file reads it in time loop and if value is found makes some implementation. But I'm trying to find what is more correct way to do the same to pass it from one application directly to another
Message Queing is certainly what you are looking for.
It will let some applications put messages on the queue and some others (or not actually) consume these messages.
https://msdn.microsoft.com/en-us/library/ms711472(v=vs.85).aspx
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a Access Database that i manipulate though a c# program.
i am trying to get a order of items that satisfy certain conditions.and be able to change the order.
my idea is to copy the unique key in to another field then order by that field and have a button that moves up and a button that moves down.is this the right way to go about this ?
a separate column in a table called Order for example makes sense, as does allowing a user to re-order the items and save it back to the database. Maybe drag/drop or something for re-ordering would be a bit less clunky than buttons, but I guess it depends if your c# application is winforms, wpf, web, etc. as to how easy that is.