I have a list of strings. For each string in that list, I want to prepend another string. I wrote a method to do it, but I was wondering if there was something already in .NET I could use to do this. It seems like something that could be built in, but I was not able to find anything.
Here is the method I wrote:
Private Function Prepen...
I want to remove all elements in a list which contains (or does not contain) a set of specific characters, however I'm running in to problems iterating over the list and removing elements as I go along. Two pretty much equal examples of this is given below. As you can see, if two elements which should be removed are directly following ea...
Morning Guys,
I have a collection that descends from List and has a public property. The Xml serializer does not pick up my proeprty. The list items serialize fine. I have tried the XmlAttribute attribute to no avail. Do you guys have a solution?
public partial class MainWindow : Window
{
public MainWindow()
{
Init...
The HTML code:
<ul id="el">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
How to create new element span inside li element on mouseover?
<ul id="el">
<li></li>
<li></li>
<li><span></span></li><!--on mouseover > new element span-->
<li></li>
</ul>
...
Hello,
I'm still learning Sharepoint and all of its various concepts, so apologies in advance for my ignorance. Here's what's going on - my company is moving a whole bunch of forms from another application into Sharepoint as InfoPath forms. Each InfoPath form is a Sharepoint list. So, we've got something like 300 different lists re...
I have the following classes and fluent mappings:
public class A {
public virtual int Id { get; private set; }
public virtual string MyString { get; set; }
public virtual IList<B> MyChildren { get; set; }
}
public class B {
public virtual int Id { get; private set; }
public virtual DateTime TheDate { get; set; ...
I need to invert a dictionary of lists, I don't know how to explain it in English exactly, so here is some code that does what I want. It just takes too much memory.
def invert(oldDict):
invertedDict = {}
for key,valuelist in oldDict.iteritems():
for value in valuelist:
try:
entry = invertedDi...
I am using Java and I am looking for String Collections (Sets and Lists) that are optimized in space and are fast. My strings are of fixed size: either 3 or 5 chars long.
Please suggest to me if there are any collection libraries available that can be best suited to me. I was thinking of some dictionary based collections.
Thanks.
...
Or How to if-statement in a modified list.
I've been reading StackOverflow for a while (thanks to everyone). I love it. I also seen that you can post a question and answer it yourself. Sorry if I duplicate, but I didn't found this particular answer on StackOverflow.
How do you verify if a element is in a list but modify it in the sa...
Hi,
How can I apply the custom XSL rendering for the XSLTListView web part in SharePoint 2010?
So, for example, I have a list of "Employees". Here is the list of columns I have for this Employee list - Full name, Job Title, Team, Contribution, Project. For this list I have created a new "List View" which has a grouping by Job Title. ...
I know its a common question asked several times on SO. But help me either way. Actually I have to upload data from my local machine to remote sql database. The remote sql database has a single table where 800,000 records are there. Now from here i have around 1,21311 records locally in my system, from which 75% records already exists on...
Hi,
I'm playing around in Haskell to try and get the hang of it. I'm running into problems with my typeclasses. What I'm trying to do is to make a generalized a* module by defining classes and methods and then I'm trying to use those in a program. My problem is that when I try to make a list of my Box data types an instance of my Board ...
How can I get the list of e.g 3 nearest metro stations from specified point and the distance from the point to station?
...
I'd like to refer to a description list item by name instead of number. To that effect, I've added labels to each item, but when referencing them I only get the name of the section, not of the list item. How can I change it to show a custom label for each item?
\section{Definitions}
\begin{description}
\item [Vehicle\label{itm:vehic...
Hi All,
I have an ASP.Net (3.5) Web application and I would like my users to be able to select the items from a simple HTML list using a toggle selection rather than the usual multiple selection (with CTRL and SHIFT).
I guess the best way should be to achieve this on the client side using some jQuery or simple javascript. Does anyone ...
Hey guys. I'm trying to change the image in a container with what I thought was simple javascript, but can't seem to figure it out. "cover-image" is the container where the image is, and "txtMontage" is the ID of the drop down list. If I run this as is, no mater what I select the image is set by the first if statement, and then the drop ...
Hi,
Hope you can help me with this. In a Flex 4 app I have a List I use for navigation. When the user clicks on one item the application goes to the appropiate view. Now I want to do some validation before the user moves to the new view, so I wanted to prevent the item selection, make the validation and if it is OK change the selectedIt...
Hi
Yes, I'm new to c#! :) i'm using .Net4 VS2010.
I have Three classes each one is used to build a list of objects of that type. All three inherit form a base class.
I want to combine the resulting three lists in to one and sort them on one of the base class elements.
Can this be done with lists of different types?
Simplified Ex...
So I have two "documents" that both have allot of properties. One document is an instance of a document that has been filled out. I need to check if there is a 'Value" in the property (since they are mainly nullable int?) and if so assign the value of the current property to the property of the other document.
Example
if (documentA.Fi...
I know in python you can do something like myList[1:20] but is there anything similar to C#?
Thanks!
...