ˇ@

Home 

c# Programming Glossary: iterate

How to populate/instantiate a C# array with a single value?

http://stackoverflow.com/questions/1014005/how-to-populate-instantiate-a-c-sharp-array-with-a-single-value

Is there a built in way to do this or do you just have to iterate through the array with a for loop Example pseudo code bool abValues.. 1000000 for int i 0 i 1000000 i abValues i true Having to iterate through the array and reset each value to true seems ineffecient...

How to get my own IP address in C#?

http://stackoverflow.com/questions/1069103/how-to-get-my-own-ip-address-in-c

As a machine could have several IP addresses you need to iterate the collection of them to find the proper one. Edit The only..

How to remove elements from a generic list while iterating over it?

http://stackoverflow.com/questions/1582285/how-to-remove-elements-from-a-generic-list-while-iterating-over-it

list.Remove item.Key return list c# list generics iterate key value share improve this question Iterate your list..

Compare two DataTables to determine rows in one but not the other

http://stackoverflow.com/questions/164144/compare-two-datatables-to-determine-rows-in-one-but-not-the-other

of query to show the different rows or would I have to iterate through each row on each DataTable to check if they are the.. datatable share improve this question would I have to iterate through each row on each DataTable to check if they are the.. or anything so at some point something is going to have to iterate through every row whether it be your code or a library or whatever...

Reading large text files with streams in C#

http://stackoverflow.com/questions/2161895/reading-large-text-files-with-streams-in-c-sharp

so ProgressMax and issue a Read for a set buffer size and iterate through in a while loop WHILST inside a background worker so..

Reading Xml with XmlReader in C#

http://stackoverflow.com/questions/2441673/reading-xml-with-xmlreader-in-c-sharp

to move to the StatementsAvailable element and let me iterate through them and let another class read each of those proeprties...

How to modify or delete items from an enumerable collection while iterating through it in C#

http://stackoverflow.com/questions/308466/how-to-modify-or-delete-items-from-an-enumerable-collection-while-iterating-thro

for deletion and then mark it as deleted I should first iterate through the data table and add all of the rows in a list then.. the data table and add all of the rows in a list then iterate through the list and mark the rows for deletions. What are the..

How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?

http://stackoverflow.com/questions/3419159/how-to-get-all-child-controls-of-a-windows-forms-form-of-a-specific-type-button

as Control ctrls Me.Controls GetType TextBox I know I can iterate over all controls getting children using a recursive function..

ASP.NET MVC $.post call returning string…need help with format for jqGrid

http://stackoverflow.com/questions/4101116/asp-net-mvc-post-call-returning-string-need-help-with-format-for-jqgrid

FE FedEx IN InTime TN TNT I'm using the StringBuilder to iterate through my collection and provide the proper string that the..

Loop through Textboxes

http://stackoverflow.com/questions/4863051/loop-through-textboxes

DateTextBox0 DateTextBox1 ... DateTextBox37 I am trying to iterate through the text boxes and assign a value to each one int month..

Entity Framework 4 Delete Object from entity collection

http://stackoverflow.com/questions/4922228/entity-framework-4-delete-object-from-entity-collection

add the new items from the incoming domain object. When I iterate over the Request.Properties collection and call a remove or.. of Order table. With this configuration you don't need to iterate through OrderItems and delete each item separately. Simply removing..

Can anyone explain IEnumerable and IEnumerator to me?

http://stackoverflow.com/questions/558304/can-anyone-explain-ienumerable-and-ienumerator-to-me

returns the current object. Anything in .Net that you can iterate over implements IEnumerable . If you're building your own class..

In C#, why can't a List<string> object be stored in a List<object> variable

http://stackoverflow.com/questions/6557/in-c-why-cant-a-liststring-object-be-stored-in-a-listobject-variable

list of strings is no longer consistent. If you were to iterate the first reference you would get a class cast exception because..

C# - What is the best way to modify a list in a 'foreach' loop?

http://stackoverflow.com/questions/759966/c-sharp-what-is-the-best-way-to-modify-a-list-in-a-foreach-loop

As it says on MSDN The foreach statement is used to iterate through the collection to get the information that you want..

Bulk-deleting in LINQ to Entities

http://stackoverflow.com/questions/869209/bulk-deleting-in-linq-to-entities

that I can find are outdated and it seems silly to iterate over and manually delete all objects I wish to remove. c# database..

Can I get more than 1000 records from a DirectorySearcher in Asp.Net?

http://stackoverflow.com/questions/90652/can-i-get-more-than-1000-records-from-a-directorysearcher-in-asp-net

is ignored and all matching results are returned as you iterate through the results returned by FindAll. Results will be retrieved..

Most efficient way to find all exe files on disk using C#?

http://stackoverflow.com/questions/10965280/most-efficient-way-to-find-all-exe-files-on-disk-using-c

traversal If you see the first comment in this MSDN link Iterate File Directories with the Parallel Class I dont even think Microsoft..

Issue using switch case statement [closed]

http://stackoverflow.com/questions/11047403/issue-using-switch-case-statement

int numSheets xlWorkbook.Sheets.Count Iterate through the sheets. They are indexed starting at 1. for int..

iterate folders on my google drive

http://stackoverflow.com/questions/12952410/iterate-folders-on-my-google-drive

all documents. DocumentsFeed feed service1.Query query Iterate through all of the documents returned foreach DocumentEntry..

Programmatically change the AssemblyVersion and AssemblyFileVersion attributes

http://stackoverflow.com/questions/1550249/programmatically-change-the-assemblyversion-and-assemblyfileversion-attributes

and AssemblyFileVersion attribute values of one DLL. Iterate all DLLs and executables in the project and apply those version..

How to remove elements from a generic list while iterating over it?

http://stackoverflow.com/questions/1582285/how-to-remove-elements-from-a-generic-list-while-iterating-over-it

generics iterate key value share improve this question Iterate your list in reverse with a for loop for int i safePendingList.Count..

how to fetch data from nested Dictionary in c#

http://stackoverflow.com/questions/1801905/how-to-fetch-data-from-nested-dictionary-in-c-sharp

in advance. c# dictionary share improve this question Iterate over the outer dictionary each time iterating members of the..

Iterate two Lists or Arrays with one ForEach statement in C#

http://stackoverflow.com/questions/1955766/iterate-two-lists-or-arrays-with-one-foreach-statement-in-c-sharp

two Lists or Arrays with one ForEach statement in C# This just..

Get URL from browser to C# application

http://stackoverflow.com/questions/3579649/get-url-from-browser-to-c-sharp-application

this code so don't be surprised if it needs a little tweak Iterate all browsers and record the details IntPtr hWnd IntPtr.Zero..

Iterate over values in Flags Enum?

http://stackoverflow.com/questions/4171140/iterate-over-values-in-flags-enum

over values in Flags Enum If I have a variable holding a flags..

Select a random N elements from List<T> in C#

http://stackoverflow.com/questions/48087/select-a-random-n-elements-from-listt-in-c-sharp

collections random element share improve this question Iterate through and for each element make the probability of selection..

How to access a specific item in a Listbox with DataTemplate?

http://stackoverflow.com/questions/5181063/how-to-access-a-specific-item-in-a-listbox-with-datatemplate

as ListBoxItem if currentSelectedListBoxItem null return Iterate whole listbox tree and search for this items TextBox nameBox..

How to recursively Iterate over properties of an Entity

http://stackoverflow.com/questions/5381851/how-to-recursively-iterate-over-properties-of-an-entity

to recursively Iterate over properties of an Entity Suppose this is what I have in.. its id and name the following is my attempt public void Iterate Ancestor a Type t a.GetType PropertyInfo props t.GetProperties.. prop to entity collection here foreach var p in prop Iterate p else print prop.GetValue a null My problem is trying to..

Populate WinForms TreeView from DataTable

http://stackoverflow.com/questions/805457/populate-winforms-treeview-from-datatable

art One ”—Two ”———Three Four Pseudocode goes like this Iterate through all the rows in the datatable. For each row create a..

Repository and Data Mapper pattern

http://stackoverflow.com/questions/8844105/repository-and-data-mapper-pattern

be made generic say GenericDataMapper T using reflection. Iterate over the properties of type T using reflection and get them..

cropping an area from BitmapData with C#

http://stackoverflow.com/questions/9688454/cropping-an-area-from-bitmapdata-with-c-sharp

bits 3 24 etc. byte croppedBytes new Byte width height BPP Iterate the selected area of the original image and the full area of.. bits 3 24 etc. byte croppedBytes new Byte width height BPP Iterate the selected area of the original image and the full area of..