I have the following code in C# and I am trying to find out why I am not able to access from a subclass that is from type list the elements of a class address. This is the code
MemberList list = MemberDB.GetMembers("sql", m_page,
m_RecordPerPage, out count, _state);
/*******************************/
public static MemberList GetMe...
Hello,
Let say I have a List< T > abc = new List< T >; inside a class public class MyClass<T>//.... Later, when I initialize the class the T because MyTypeObject1. So I have a generic list of List< MyTypeObject1 >.
I would like to know, what type of object the list of my class contain. Example, the list called abc contain what type of...
I am creating a web application that acts as a priority list, allowing a user to re-arrange a set of items in a list and storing that arrangement in a MySQL database via a PHP backend.
At the moment, when the user has finished arranging their items and saves the configuration, I am calling a seperate UPDATE statement for every row, plug...
I want to pop up a messagebox in SWT with a potentially long list of items. Can I add a List widget, or should I make a new shell and populate it with a Label, List, and two Buttons?
...
Dear all
I am using the jQuery. Now I need to classify the two lists
If any list having Id starts with outer i need to alert it Outer.
If any list having Id starts with sub i need to alert it Sub.
<ul id="nav">
<li id="outer1"><a href="#url"><b class="">Outer 1</b></a></li>
<li id="outer2"><a href="#u...
I have a list of elements describing events that took place at some time, the time being represented as a Datetime property 'StartTime' on the objects. I now wish to extract a subset of these events containing those elements that are placed in an interval / between two DateTime instances A,B such that StartTime >= A && StartTime <= B. C...
Is there an easy way to get only the unique values out of a list of strings in C#? My google-fu is failing me today.
(I know I can put them in another structure and pull them out again. I'm looking for stupidly-easy, like Ruby's .uniq method. C# has bloody well everything else, so I'm probably just using the wrong synonym.)
Specific...
Dear all
I am using JQuery I need to extract the List' Id name.
<ul id="nav">
<li id="outer1m"><a href="#url"><b class="">outer1</b></a></li>
<li id="outer2m"><a href="#url"><b class="">outer2</b></a></li>
<li id="outer3m"><a href="#url"><b class="">outer3 </b></a>
<ul style="display: none;">
...
Hi,
I have few methods that returns different Generic Lists.
Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflection to do this.
IF i have this:
List<Whatever> whatever=new List<Whatever>();
(This next code doesnt work of course, but i would like...
var listings = new List<FPListing>();
if (Cache["Listings"] == null)
{
listings = GetFPListings(Industry);
Cache["Listings"] = listings;
}
else
{
listings = (List<FPListing>)Cache["Listings"];
}
The cast throws this exception
Unable to cast object of type
'System.Collections.Generic.List1[Listings+FPListing]'
to ty...
How can I sort a List by order of case e.g.
smtp:[email protected]
smtp:[email protected]
SMTP:[email protected]
I would like to sort so that the upper case record is first in the list e.g SMTP:[email protected].
...
So, for example, say I had a list of numbers and I wanted to create a list that contained each number multiplied by 2 and 3. Is there any way to do something like the following, but get back a single list of numbers instead of a list of lists of numbers?
mult_nums = [ [(n*2),(n*3)] | n <- [1..5]]
-- this returns [[2,3],[4,6],[6,9],[8,1...
I'm trying to update one of the properties of a word document from an event receiver.
I'm handling it with the ItemAdded event and updating the property as is:
// Modify property
DisableEventFiring();
properties.ListItem.File.CheckOut();
properties.AfterProperties[HelloWorldInternalFieldName] = "Hello World!";
properties.ListItem.Updat...
What is the biggest / largest / best list of words in the English language? Something in a simple text file would be great.
...
I'm trying to use Linq to return a list of ids given a list of objects where the id is a property. I'd like to be able to do this without looping through each object and pulling out the unique ids that I find.
I have a list of objects of type MyClass and one of the properties of this class is an ID.
public class MyClass
{
public int ...
I am writing a program in c++ which implements a doubly-linked list that holds a single character in each node. I am inserting characters via the append function:
doubly_linked_list adam;
adam.append('a');
This function is implemented as follows:
//Append node
node* append(const item c){
//If the list is not empty...
...
I have a have a table with Region_Name, Region_ID fields, and another one with Area_Name, Region_ID fields (each region have Areas that belongs to it).
I want to display on my asp.net page a list of links (something that looks like a treeView) so when someone clicks on for ex The Bronx from Region New York in this list:
New York
The ...
In .NET which data type do you use to store list of strings ?
Currently I'm using List(Of String) because it's easier than Array to manage and add/remove stuff. I'm trying to understand what are the other options, when they become handy and when I should avoid List(Of String) usage.
Do you use another type? Why and When?
...
I'm trying to figure out how to format the code below so that the first two blocks of info display side by side, then display the third one centered underneath it. I tried using a listing style with css to format it so but doesn't seem to really work for me. Help/Suggestions? Please and thank you :)
Inauguration
Friday, April 17, 2009
...
I'm trying to write a string processing function in F#, which looks like this:
let rec Process html =
match html with
| '-' :: '-' :: '>' :: tail -> ("→" |> List.of_seq) @ Process tail
| head :: tail -> head :: Process tail
| [] -> []
My pattern matching expression against several elements is a bit ugly (the whole '-' :: ...