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 9 years ago.
Improve this question
Which data structer should I use when I need to hold two unknown types as one object?
I need that two create a dictionary with value that can take two types.
Anyone have any idea?
Thanks.
how about
Tuple<TOne, TTwo> IndexCombiner<TOne, TTwo>(
Table table,
Func<Table, TOne> selectorOne,
Func<Table, TTwo> selectorTwo)
{
return Tuple.Create(selectorOne(table), selectorTwo(table));
}
as an example.
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 2 years ago.
Improve this question
SQL server does not understand C# inbuilt functions.
I would put skills as a collection instead and than join on presentation (Transform it in the controller or wherever you send it).
Sills = cjdb.jclsf.Select(i => i.sr.Name)
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 years ago.
Improve this question
I am trying to create a validation expression for a table name in the format of:
Name_TableName_YYYYMMDD
right now I have something like this:
^[a-zA-Z0-9][^_]+[a-zA-Z0-9][^_]+\d{8}
Number at the end can read 8 digits.
You could try this (very basic) expression
[a-zA-Z]+_[a-zA-Z]+_[0-9]{4}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])
Link to a test
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 5 years ago.
Improve this question
I have a dictionary
Dictionary<string, string> Format
And I access the first value (first key value) like this:
Format.Values.First()
There is a simple possibility to access the 2'nd one like this?
Format.Values.Second()
EDITED
This is a settings dictionary with only 2 entries. I really don't understand downvotes, maybe someone will have this situation and really need those answers.
Just simply use
Format.Values.ElementAt(1);
Use the Skip(int) method.
Format.Values.Skip(1).First()
You can do it like this:
Format[Format.Keys.ToList()[1]];
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
How can i assign automatically the Transform via code using something like GameObject.FindObjectOfType?
raycastEnd = GameObject.Find("RaycastEnd").transform;
If you have multiple objects named "RaycastEnd" it will return the first one. the first one may be unpredictable.
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 8 years ago.
Improve this question
I want to compare two strings on percentage basis
like i have this
Player and wmplayer
Manager and IDMan
Mail and WINMail
Explorer and iexplorer
Any Help Please
You can probably make use of a library such as ScoreSharp. It is designed to do fuzzy matching to find similarities between strings.