I'm using TFS API to get Work Item Collection and then in a DataTable i made Workitem properties like WorkItem Id,Title,Type,State,Assigned To...etc as it's columns. Now in a foreach loop i'm adding the data of WorkItem collection into DataRows. Some of my colleagues saying that this is not a recommended approach and they are advising to Create a Class for WorkItems. nowcan somebody tell me what to do in this scenario.I'm not asking for syntax but for the approach here.I'm a new bee to C#.
How to handle collection of data in C#?
165 Views Asked by Jaganmohanreddy At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in COLLECTIONS
- how to keep 10 biggest integer while reading a list in java?
- Collecting inner List from outer List using Java 8
- Passing a lambda expression as parameter to a method?
- Performance of element-compare in java collections
- Where can I find the definitions of System.Collections.Concurrent classes in the mono source code?
- Any null safe alternative to ArrayList.addAll?
- Using Python how to get number of occurance of a string in 'n' number of columns from a .csv file
- Couchbase Bulk loading error with upsert() (.NET SDK 2.0)
- How to create a Dynamic IEnumerable
- How does Collections.binarySearch work?
- What collection is best to implement this program?
- Big form collections with Symfony2
- Update multiple values in an oracle table using values from an APEX collection
- Rails combine member & collection in routes.rb
- "Class.Property" is not accessible in this context because it is 'Private'
Related Questions in TFS-SDK
- Cannot create link between WorkItem and Server object in TFS 2012
- Get Changed Lines With TFS API
- Get TFS work item and its links using REST API
- TFS 2017 Build Quality Handler
- Get teams I am member of
- Work Item Query Policy to check workitems match on merge
- Make Changes to a TFS Work Item as a specific user
- how to remove tags in text while displaying on a web page
- How to handle collection of data in C#?
- using file upload control to upload a file and pass the file to an object/web service
- Accessing TFS Work Item Properties "Blocked" & "Root Cause" using TFS API
- Using TFS API to fetch All Priority Triage Severity values
- Saving and reading files to and from droplocation
- What would be the recommended way to integrate Microsoft Team Foundation Server into an iOS application
- How do i get the 'branch' icon to display in TFS 2013 Source Control when using the TFS API?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What they probably saying is that you can create a datastructure for your workitem. For example a class like below, which you can manipulate based on your need.
And then you can build a collection of this type of object from the WorkItemCollection received from TFS.