id
stringlengths
36
36
question_id
int64
4
9.09M
chunk_index
int32
0
30
embedding_text
stringlengths
41
8.67k
dense_tokens
int32
10
1.02k
sparse_tokens
int32
11
1.02k
languages
listlengths
1
5
tags
listlengths
1
5
payload_json
stringlengths
408
563
dense
list
sparse_indices
listlengths
8
467
sparse_values
listlengths
8
467
18528ff7-95b6-5997-a445-d7073353298b
4
0
Title: How to convert Decimal to Double in C#? I want to assign the decimal variable trans to the double variable this.Opacity. decimal trans = trackBar1.Value / 5000; this.Opacity = trans; When I build the app it gives the following error: Cannot implicitly convert type decimal to double
72
76
[ "c#" ]
[ "c#", "floating-point", "type-conversion", "double", "decimal" ]
{"accepted_answer_id":7,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-07-31T21:42:52.667000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2026-01-05T07:57:44.773000+00:00","last_edit_date":"2026-01-05T07:57:44.773000+00:00","que...
[ 0.03302001953125, -0.00067138671875, -0.00733184814453125, 0.0011053085327148438, -0.00433349609375, -0.0201873779296875, -0.0166168212890625, 0.022918701171875, -0.01092529296875, 0.018280029296875, 0.0003635883331298828, -0.01216888427734375, 0.0092010498046875, -0.04559326171875, 0.01...
[ 11, 23, 47, 248, 313, 418, 856, 903, 2203, 2749, 3444, 3900, 4027, 4171, 4904, 10644, 10869, 11249, 18499, 19692, 25267, 25632, 28560, 32380, 39029, 41929, 45367, 48962, 49132, 50770, 60089, 76199, 77336, 95486, 96760, 107172, 165164 ]
[ 0.1357421875, 0.039306640625, 0.125, 0.012939453125, 0.0556640625, 0.006103515625, 0.0284423828125, 0.109375, 0.006103515625, 0.189453125, 0.049072265625, 0.1923828125, 0.1220703125, 0.0283203125, 0.1982421875, 0.14453125, 0.05615234375, 0.0537109375, 0.1669921875, 0.2060546875...
5ae38e38-6c50-5f2d-8f77-60d995fe2aba
9
0
Title: How do I calculate someone's age based on a DateTime type birthday? Given a DateTime representing a person's birthday, how do I calculate their age in years?
36
44
[ ".net", "c#" ]
[ "c#", ".net", "datetime" ]
{"accepted_answer_id":1404,"answer_count":76,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-07-31T23:40:59.743000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2025-05-01T16:40:42.650000+00:00","last_edit_date":"2022-07-27T22:34:36.320000+0...
[ 0.042633056640625, 0.016937255859375, -0.0179901123046875, -0.031982421875, 0.022735595703125, -0.00669097900390625, -0.0079345703125, 0.00952911376953125, 0.004795074462890625, -0.00899505615234375, -0.01751708984375, -0.0003921985626220703, 0.0092926025390625, -0.0230865478515625, -0.0...
[ 23, 54, 67, 87, 2363, 3445, 3642, 5369, 10644, 11249, 22008, 25512, 32070, 33636, 35509, 48962, 70059, 74481, 101207 ]
[ 0.03857421875, 0.007080078125, 0.08935546875, 0.018310546875, 0.0419921875, 0.095703125, 0.03759765625, 0.189453125, 0.125, 0.04052734375, 0.060302734375, 0.16015625, 0.2216796875, 0.1455078125, 0.055908203125, 0.037109375, 0.2255859375, 0.185546875, 0.2119140625 ]
27d28f39-8659-5a47-b7cf-6ce58494b70b
11
0
Title: Calculate relative time in C# Given a specific DateTime value, how do I display relative time, like: 2 hours ago 3 days ago a month ago
38
37
[ "c#" ]
[ "c#", "datetime", "time", "relative-time-span" ]
{"accepted_answer_id":1248,"answer_count":42,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-07-31T23:55:37.967000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2026-02-12T18:21:22+00:00","last_edit_date":"2026-02-12T18:21:22+00:00","question_id":1...
[ 0.0186614990234375, -0.01544952392578125, -0.0063323974609375, 0.006847381591796875, 0.034912109375, 0.012115478515625, -0.02520751953125, 0.0220489501953125, 0.0105438232421875, -0.0104217529296875, -0.028472900390625, -0.01314544677734375, 0.0232696533203125, -0.034912109375, 0.0232696...
[ 10, 116, 138, 313, 1733, 1884, 2182, 3642, 4904, 6650, 13312, 21974, 25512, 29458, 31150, 34292, 35845, 44116, 48962, 70059, 77878, 212467 ]
[ 0.013671875, 0.099609375, 0.12890625, 0.0439453125, 0.228515625, 0.0157470703125, 0.054931640625, 0.06103515625, 0.208984375, 0.1396484375, 0.1396484375, 0.1650390625, 0.126953125, 0.1220703125, 0.1357421875, 0.16015625, 0.2578125, 0.23046875, 0.040283203125, 0.1953125, 0.041...
92d5326a-b086-5604-bd9f-232f448c8e10
16
0
Title: Filling a DataSet or a DataTable from a LINQ query result set How do you expose a LINQ query as an ASMX web service? Usually, from the business tier, I can return a typed DataSet or a DataTable which can be serialized for transport over ASMX. How can I do the same for a LINQ query? Is there a way to popul...
237
292
[ ".net", "c#" ]
[ "c#", "linq", "web-services", ".net-3.5" ]
{"accepted_answer_id":12446,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T04:59:33.643000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2021-01-07T14:09:26.367000+00:00","last_edit_date":"2021-01-07T14:09:26.367000+0...
[ 0, -0.0114593505859375, 0.0156402587890625, 0.014862060546875, 0.006595611572265625, -0.02471923828125, 0.004207611083984375, 0.003223419189453125, 0.00788116455078125, 0.033905029296875, -0.01003265380859375, 0.005672454833984375, -0.0034027099609375, 0.00504302978515625, 0.009376525878...
[ 18, 19, 41, 87, 126, 237, 238, 294, 618, 707, 711, 831, 959, 1294, 1295, 1418, 1467, 1829, 2606, 2646, 2737, 2886, 3568, 3835, 3884, 3917, 3934, 4488, 4516, 5423, 5701, 5809, 6181, 6483, 6493, 7763, 8063, 10644, 11809, 16750, 22153, 2...
[ 0.0283203125, 0.01318359375, 0.1376953125, 0.005615234375, 0.1611328125, 0.05712890625, 0.0986328125, 0.1611328125, 0.16796875, 0.01904296875, 0.00634765625, 0.0230712890625, 0.0107421875, 0.11328125, 0.0478515625, 0.0068359375, 0.08251953125, 0.04248046875, 0.000732421875, 0.0...
1f6b0098-20d3-52c1-8a90-45b90ef74bb6
39
0
Title: Reliable timer in a console application I am aware that in .NET there are three timer types (see Comparing the Timer Classes in the .NET Framework Class Library). I have chosen a threaded timer as the other types can drift if the main thread is busy, and I need this to be reliable. The way this timer works in...
160
167
[ ".net", "c#", "vb.net" ]
[ "c#", ".net", "vb.net", "timer" ]
{"accepted_answer_id":45,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T12:43:11.503000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#","vb.net"],"last_activity_date":"2020-12-10T16:48:40.317000+00:00","last_edit_date":"2019-01-20T13:50:37.53...
[ 0.0200042724609375, 0.022369384765625, -0.0275726318359375, 0.02935791015625, 0.0275726318359375, -0.0275726318359375, 0.0032253265380859375, 0.0010061264038085938, 0.0256805419921875, -0.0091705322265625, -0.0355224609375, -0.0017528533935546875, 0.0181121826171875, -0.020355224609375, ...
[ 5, 23, 56, 70, 83, 150, 297, 621, 738, 831, 853, 959, 1053, 2594, 2886, 3789, 3871, 3884, 4488, 5201, 5773, 5792, 6226, 9842, 11343, 12960, 13320, 15700, 17262, 17777, 19667, 20594, 20903, 21991, 23937, 29568, 31089, 33233, 35014, 37842, ...
[ 0.0152587890625, 0.0169677734375, 0.146484375, 0.005126953125, 0.005615234375, 0.130859375, 0.1064453125, 0.004638671875, 0.00244140625, 0.016357421875, 0.042724609375, 0.057373046875, 0.09375, 0.0703125, 0.060546875, 0.00146484375, 0.036865234375, 0.005859375, 0.03857421875, 0...
77ac00c4-46b0-5e9d-9cb0-b9e4376faf27
59
0
Title: How do I get a distinct, ordered list of names from a DataTable using LINQ? I have a DataTable with a Name column. I want to generate a collection of the unique names ordered alphabetically. The following query ignores the order by clause. var names = (from DataRow dr in dataTable.Rows orderby (string...
96
121
[ ".net", "c#" ]
[ "c#", "linq", ".net-3.5" ]
{"accepted_answer_id":43110,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T13:14:33.797000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2019-09-30T08:49:44.503000+00:00","last_edit_date":"2018-01-30T16:56:45.910000+0...
[ 0.0341796875, -0.01242828369140625, -0.004810333251953125, -0.0106353759765625, 0.024749755859375, -0.01332855224609375, -0.0178070068359375, -0.0025691986083984375, 0.0142822265625, 0.00475311279296875, -0.0017261505126953125, 0.0265350341796875, -0.005977630615234375, 0.00633621215820312...
[ 7, 13, 22, 23, 41, 111, 285, 297, 316, 390, 434, 618, 959, 1272, 1294, 1295, 2046, 2053, 2203, 2737, 2886, 3365, 3444, 3568, 5303, 7569, 11249, 11809, 12724, 12989, 14602, 15390, 15757, 17368, 19725, 25632, 36849, 36998, 42486, 44084, 4...
[ 0.04541015625, 0.0615234375, 0.0247802734375, 0.014892578125, 0.08203125, 0.0145263671875, 0.19140625, 0.09765625, 0.0673828125, 0.1015625, 0.07568359375, 0.1337890625, 0.115234375, 0.181640625, 0.0703125, 0.0634765625, 0.06640625, 0.07421875, 0.0279541015625, 0.193359375, 0....
abf2356b-efc9-5904-a21d-0fc01ee65b2b
109
0
Title: Decoding T-SQL CAST in C#/VB.NET Recently our site has been deluged with the resurgence of the Asprox botnet SQL injection attack. Without going into details, the attack attempts to execute SQL code by encoding the T-SQL commands in an ASCII encoded BINARY string. It looks something like this: DECLARE%20@S%20...
733
896
[ "c#", "sql", "vb.net" ]
[ "c#", "sql", "vb.net", "ascii", "hex" ]
{"accepted_answer_id":2585,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T15:23:05.190000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","sql","vb.net"],"last_activity_date":"2019-02-10T22:11:00.017000+00:00","last_edit_date":"2019-01-20T13:49:56.7...
[ -0.0013647079467773438, -0.0172119140625, 0.0011205673217773438, -0.0007009506225585938, 0.018035888671875, -0.034881591796875, 0.00002491474151611328, 0.0015277862548828125, -0.009552001953125, 0.0301513671875, -0.043670654296875, -0.01270294189453125, -0.01959228515625, -0.02386474609375...
[ 4, 5, 6, 7, 8, 9, 10, 13, 15, 16, 18, 20, 22, 23, 25, 27, 38, 39, 47, 53, 54, 58, 64, 67, 70, 71, 74, 83, 87, 91, 98, 99, 100, 110, 111, 116, 126, 132, 136, 141, 184, 214, 221, 237, 254, 262, 268, 272, 284, 294, 313,...
[ 0.031982421875, 0.012939453125, 0.01318359375, 0.011962890625, 0.16015625, 0.115234375, 0.012451171875, 0.012451171875, 0.012451171875, 0.01318359375, 0.013427734375, 0.01220703125, 0.06396484375, 0.037109375, 0.0126953125, 0.01171875, 0.0576171875, 0.030029296875, 0.012451171875...
76ce021f-323c-57f6-8276-fe97175be63f
145
0
Title: Compressing / Decompressing Folders & Files Does anyone know of a good way to compress or decompress files and folders in C# quickly? Handling large files might be necessary.
43
46
[ ".net", "c#" ]
[ "c#", ".net", "file", "compression" ]
{"accepted_answer_id":null,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T17:13:08.933000+00:00","has_accepted_answer":false,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2023-09-20T15:07:43.557000+00:00","last_edit_date":"2018-12-25T14:13:03.880000+0...
[ 0.0134124755859375, 0.003753662109375, -0.0134124755859375, 0.0002856254577636719, 0.032989501953125, -0.033233642578125, -0.0185089111328125, 0.0183868408203125, 0.0006933212280273438, -0.0010900497436523438, -0.032745361328125, -0.004184722900390625, 0.02325439453125, -0.034881591796875,...
[ 7, 8, 10, 23, 32, 47, 111, 136, 214, 248, 262, 277, 313, 375, 619, 707, 3714, 3917, 4127, 4904, 11856, 13648, 14202, 21334, 30077, 35672, 38001, 42724, 48962, 63559, 69405, 78303, 102158, 142158, 193237 ]
[ 0.00927734375, 0.1826171875, 0.016357421875, 0.053955078125, 0.0068359375, 0.0654296875, 0.00830078125, 0.1142578125, 0.05126953125, 0.08544921875, 0.18359375, 0.158203125, 0.07470703125, 0.1513671875, 0.10302734375, 0.083984375, 0.0830078125, 0.09765625, 0.08447265625, 0.18164...
04776580-80d1-5cf9-9d49-a136ff7694cc
174
0
Title: How do I print an HTML document from a web service? I want to print HTML from a C# web service. The web browser control is overkill, and does not function well in a service environment, nor does it function well on a system with very tight security constraints. Is there any sort of free .NET library that will s...
302
356
[ "c#", "html" ]
[ "c#", "html", "web-services", "printing" ]
{"accepted_answer_id":null,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T18:33:48.287000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#","html"],"last_activity_date":"2024-07-25T08:20:15.510000+00:00","last_edit_date":"2018-12-13T17:30:17.253000+0...
[ -0.0081634521484375, -0.0309906005859375, 0.0092315673828125, -0.0071868896484375, -0.0253143310546875, -0.0301666259765625, -0.0158538818359375, 0.0423583984375, -0.02130126953125, 0.01467132568359375, -0.0090484619140625, 0.0019817352294921875, 0.0111236572265625, 0.01561737060546875, ...
[ 18, 47, 54, 87, 132, 214, 313, 474, 478, 479, 645, 707, 959, 1181, 1234, 1294, 1295, 1467, 1916, 2174, 2292, 2448, 2816, 3332, 3444, 3525, 3835, 4002, 4092, 4516, 4867, 4904, 5299, 5426, 5885, 6226, 7614, 8060, 9191, 11249, 11675, 129...
[ 0.0145263671875, 0.009765625, 0.0625, 0.030517578125, 0.0439453125, 0.138671875, 0.00439453125, 0.009033203125, 0.026123046875, 0.0927734375, 0.0439453125, 0.00537109375, 0.0849609375, 0.091796875, 0.1708984375, 0.07177734375, 0.1708984375, 0.11328125, 0.072265625, 0.0092773437...
a278a846-95ad-5c00-b57d-9a0196c5270f
192
0
Title: Floating Point Number parsing: Is there a Catch All algorithm? One of the fun parts of multi-cultural programming is number formats. Americans use 10,000.50 Germans use 10.000,50 French use 10 000,50 My first approach would be to take the string, parse it backwards until I encounter a separator and us...
271
272
[ ".net", "c#" ]
[ "c#", ".net", "asp.net", "internationalization", "globalization" ]
{"accepted_answer_id":258,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T19:23:13.117000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2023-04-24T08:28:04.530000+00:00","last_edit_date":"2019-01-20T13:48:20.567000+00:...
[ 0.0175323486328125, -0.0105133056640625, -0.0196990966796875, -0.0219879150390625, 0.0103302001953125, -0.01861572265625, -0.00876617431640625, 0.00708770751953125, -0.01428985595703125, 0.0015687942504882812, -0.01129150390625, -0.0120086669921875, 0.036285400390625, -0.007266998291015625...
[ 5, 7, 10, 22, 56, 116, 138, 184, 206, 209, 237, 351, 366, 449, 669, 748, 765, 927, 1179, 1238, 1294, 1556, 1632, 1809, 2071, 2174, 2189, 2445, 2525, 2606, 2685, 2749, 2806, 3164, 3501, 3667, 3773, 4068, 4263, 4420, 4488, 4527, 4568,...
[ 0.04541015625, 0.0152587890625, 0.03515625, 0.0303955078125, 0.05810546875, 0.091796875, 0.087890625, 0.107421875, 0.1357421875, 0.058837890625, 0.0830078125, 0.0966796875, 0.1728515625, 0.05419921875, 0.1162109375, 0.1328125, 0.03515625, 0.015869140625, 0.177734375, 0.02453613...
fc47e559-39c6-5874-a3e1-a1f47e1528be
260
0
Title: Adding scripting functionality to .NET applications I have a little game written in C#. It uses a database as back-end. It's a trading card game, and I wanted to implement the function of the cards as a script. What I mean is that I essentially have an interface, ICard, which a card class implements (public c...
248
284
[ ".net", "c#" ]
[ "c#", ".net", "scripting" ]
{"accepted_answer_id":307,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T23:22:08.983000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2024-10-10T11:01:49.417000+00:00","last_edit_date":"2024-08-25T10:40:37.683000+00...
[ 0.01047515869140625, 0.0093536376953125, -0.0305328369140625, -0.0091705322265625, 0.016571044921875, -0.035491943359375, 0.0012054443359375, 0.03314208984375, 0.0142059326171875, 0.0121307373046875, -0.040008544921875, 0.008758544921875, 0.031707763671875, -0.0167999267578125, 0.0041999...
[ 5, 10, 23, 47, 62, 83, 87, 98, 100, 106, 214, 237, 313, 450, 765, 910, 1340, 1884, 2071, 2481, 2499, 2646, 2806, 2886, 3525, 3611, 3701, 3871, 4420, 4527, 4904, 5117, 6712, 7121, 7722, 8194, 9396, 9969, 10176, 11435, 12638, 13158, 1...
[ 0.05419921875, 0.041015625, 0.034912109375, 0.05029296875, 0.09130859375, 0.009033203125, 0.126953125, 0.025390625, 0.01171875, 0.06591796875, 0.146484375, 0.0859375, 0.0625, 0.0164794921875, 0.004638671875, 0.140625, 0.08935546875, 0.0693359375, 0.033447265625, 0.0546875, 0....
58eaebda-90e1-5c2a-84e9-48780cd137a7
289
0
Title: How do you sort a dictionary by value? I often have to sort a dictionary (consisting of keys & values) by value. For example, I have a hash of words and respective frequencies that I want to order by frequency. There is a SortedList which is good for a single value (say frequency), that I want to map back to ...
102
119
[ ".net", "c#" ]
[ "c#", ".net", "sorting", "dictionary" ]
{"accepted_answer_id":298,"answer_count":21,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-02T00:40:58.200000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2024-03-27T08:22:11.473000+00:00","last_edit_date":"2022-02-20T04:27:56.023000+00...
[ 0.035491943359375, 0.01523590087890625, -0.0189361572265625, 0.01666259765625, 0.0222625732421875, -0.006072998046875, -0.0149993896484375, -0.01369476318359375, 0.008453369140625, -0.00690460205078125, 0.0029754638671875, 0.022613525390625, -0.02154541015625, -0.00604248046875, 0.022384...
[ 7, 10, 45, 54, 56, 100, 111, 127, 297, 390, 398, 619, 765, 944, 959, 1556, 2565, 3444, 3917, 4127, 4420, 6635, 10763, 11001, 11249, 12096, 12478, 12989, 14055, 18507, 22288, 22799, 27983, 31384, 34153, 34292, 46622, 48962, 53666, 70634, ...
[ 0.008056640625, 0.049072265625, 0.0810546875, 0.06298828125, 0.04248046875, 0.005615234375, 0.0029296875, 0.0849609375, 0.08984375, 0.138671875, 0.04443359375, 0.0169677734375, 0.005859375, 0.07421875, 0.046630859375, 0.09765625, 0.0810546875, 0.03271484375, 0.052978515625, 0.0...
a5ea747d-207e-5940-acd7-14b59c5e1719
482
0
Title: WinForms ComboBox data binding gotcha Assume you are doing something like the following List<string> myitems = new List<string> { "Item 1", "Item 2", "Item 3" }; ComboBox box = new ComboBox(); box.DataSource = myitems; ComboBox box2 = new ComboBox(); box2.DataSource = myitems So now we have 2 ...
200
245
[ "c#" ]
[ "c#", "winforms", "data-binding" ]
{"accepted_answer_id":509,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-02T16:09:56.780000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-12-24T07:28:40.060000+00:00","last_edit_date":"2019-01-20T13:47:33.730000+00:00","qu...
[ 0.0299224853515625, -0.0027751922607421875, -0.00885009765625, -0.02398681640625, 0.01229095458984375, 0.00463104248046875, 0.005939483642578125, 0.004512786865234375, 0.0255279541015625, 0.032073974609375, -0.018768310546875, 0.003414154052734375, -0.0060577392578125, -0.0159149169921875,...
[ 7, 90, 116, 138, 304, 375, 759, 837, 1436, 1486, 1632, 2053, 2806, 2811, 2982, 3288, 3525, 4163, 4432, 4778, 5442, 5885, 6226, 7092, 7763, 10298, 11343, 14216, 15400, 15549, 16530, 17686, 23415, 25842, 32036, 34292, 42486, 43240, 65572, 6...
[ 0.006103515625, 0.04150390625, 0.0693359375, 0.0859375, 0.0595703125, 0.166015625, 0.05224609375, 0.19921875, 0.169921875, 0.0947265625, 0.02783203125, 0.138671875, 0.04931640625, 0.09912109375, 0.08984375, 0.1611328125, 0.008544921875, 0.08203125, 0.107421875, 0.0986328125, ...
34e41675-9898-539b-957c-357b373a1f89
562
0
Title: How to write to Web.Config in Medium Trust? Uploading my first decently sized web app to my shared host provided me with a fresh set of challenges, by which I mean, sleepless nights. The issue was that I had most certainly not developed my application for medium trust (or had any clue what that was.) I mitig...
135
146
[ "c#" ]
[ "c#", "asp.net", "medium-trust" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-02T21:39:11.733000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-01-20T13:48:44.203000+00:00","last_edit_date":"2019-01-20T13:48:44.203000+00:00","...
[ -0.022552490234375, -0.021240234375, -0.01473236083984375, 0.019317626953125, 0.006053924560546875, -0.00948333740234375, -0.0097808837890625, 0.0020427703857421875, 0.0020732879638671875, 0.00563812255859375, -0.026123046875, 0.0058441162109375, 0.0045013427734375, -0.01551055908203125, ...
[ 5, 8, 23, 47, 491, 1467, 1758, 3917, 4002, 4027, 5117, 7413, 9393, 11249, 11435, 11935, 13267, 15700, 16797, 17431, 18022, 27980, 29786, 29806, 30098, 31089, 33022, 37348, 38415, 40140, 48962, 53418, 57646, 59121, 60268, 63207, 68782, 74022, ...
[ 0.09765625, 0.00341796875, 0.0595703125, 0.1494140625, 0.00146484375, 0.1416015625, 0.00341796875, 0.056396484375, 0.1044921875, 0.1220703125, 0.048583984375, 0.023681640625, 0.0859375, 0.06982421875, 0.1318359375, 0.12109375, 0.00537109375, 0.0126953125, 0.039306640625, 0.0683...
90f2dd35-8ea7-5954-a689-2d2a01d8d80d
564
0
Title: What is the difference between an int and an Integer in Java and C#? I was reading More Joel on Software when I came across Joel Spolsky saying something about a particular type of programmer knowing the difference between an int and an Integer in Java/C# (Object-Oriented Programming Languages). So, what is t...
72
76
[ "c#", "java" ]
[ "c#", "java", "integer", "int" ]
{"accepted_answer_id":566,"answer_count":26,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-02T21:47:34.820000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","java"],"last_activity_date":"2022-12-23T23:40:23.233000+00:00","last_edit_date":"2020-03-18T11:24:39.983000+00...
[ 0.017425537109375, -0.0127410888671875, -0.00882720947265625, -0.00728607177734375, 0.0195465087890625, -0.00731658935546875, -0.003643035888671875, 0.0301055908203125, -0.000043272972106933594, 0.00011014938354492188, -0.053314208984375, 0.00382232666015625, 0.0117340087890625, 0.01279449...
[ 18, 23, 64, 70, 83, 98, 136, 142, 313, 441, 2367, 4865, 4904, 4922, 5455, 10644, 16454, 17721, 23752, 27958, 41925, 44401, 46471, 48962, 54433, 60212, 75161, 77848, 83658, 141956, 148527, 165168, 188320 ]
[ 0.228515625, 0.1767578125, 0.07568359375, 0.1103515625, 0.040771484375, 0.031982421875, 0.15625, 0.087890625, 0.048828125, 0.037353515625, 0.05615234375, 0.078125, 0.1865234375, 0.1318359375, 0.03271484375, 0.1142578125, 0.021240234375, 0.1396484375, 0.09130859375, 0.1162109375...
9002b7fa-da3d-5fa9-b28f-717752fa06cb
601
0
Title: Robust Random Number Generation I'm looking for a performant, reasonably robust RNG using no special hardware. It can use mathematical methods (Mersenne Twister, etc), it can "collect entropy" from the machine, whatever. On Linux/etc we have a drand48() which generates 48 random bits. I'd like a similar functio...
168
190
[ "c#", "c++" ]
[ "c#", "c++", "random", "mersenne-twister" ]
{"accepted_answer_id":602,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2012-09-11T00:41:28.240000+00:00","creation_date":"2008-08-03T02:05:59.620000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#","c++"],"last_activity_date":"2023-06-01T11:36:18.937000+00:00","last_edit_date":"20...
[ 0.037506103515625, 0.006778717041015625, -0.0251922607421875, 0.039886474609375, 0.033447265625, -0.043701171875, -0.06494140625, 0.0038814544677734375, 0.0292510986328125, -0.026031494140625, -0.0269927978515625, 0.01540374755859375, 0.032257080078125, 0.02197265625, 0.03271484375, 0....
[ 10, 38, 86, 100, 104, 110, 111, 132, 306, 313, 627, 707, 765, 831, 959, 1015, 1295, 1515, 1650, 1884, 2452, 2789, 2806, 3815, 4527, 4572, 4785, 4904, 5361, 5608, 6493, 7432, 8066, 8110, 8160, 9285, 11192, 12353, 16487, 17368, 17777, 1...
[ 0.042236328125, 0.00341796875, 0.1474609375, 0.09423828125, 0.0201416015625, 0.054443359375, 0.06884765625, 0.076171875, 0.12890625, 0.0556640625, 0.1328125, 0.0150146484375, 0.004150390625, 0.07080078125, 0.0029296875, 0.1025390625, 0.05859375, 0.1416015625, 0.010498046875, 0....
85fc784b-1a2e-5ebc-9cd0-e9c4b03dbd2d
650
0
Title: Automatically update version number I would like the version property of my application to be incremented for each build but I'm not sure on how to enable this functionality in Visual Studio (2005/2008). I have tried to specify the AssemblyVersion as 1.0.* but it doesn't get me exactly what I want. I'm also ...
186
190
[ "c#" ]
[ "c#", "visual-studio", "versioning" ]
{"accepted_answer_id":655,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T11:12:52.463000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2021-04-19T16:31:55.373000+00:00","last_edit_date":"2012-08-01T21:03:09.177000+00:00","qu...
[ 0.01605224609375, -0.0117645263671875, 0.00534820556640625, -0.02032470703125, -0.0013294219970703125, 0.01605224609375, -0.0019464492797851562, 0.03350830078125, 0.017120361328125, 0.027099609375, -0.0501708984375, -0.00043272972106933594, 0.044921875, -0.00543975830078125, 0.0238952636...
[ 22, 53, 70, 100, 136, 186, 214, 297, 759, 765, 831, 903, 959, 1639, 1884, 2046, 2806, 2886, 2967, 3173, 3229, 3444, 3642, 7413, 9077, 10332, 10991, 11389, 11435, 12638, 12684, 14012, 14192, 14364, 14602, 14847, 16610, 17368, 19048, 22968,...
[ 0.0439453125, 0.040771484375, 0.004638671875, 0.056884765625, 0.06982421875, 0.0341796875, 0.0673828125, 0.1005859375, 0.012451171875, 0.011474609375, 0.00634765625, 0.007568359375, 0.00732421875, 0.059326171875, 0.0849609375, 0.043212890625, 0.0242919921875, 0.08984375, 0.089843...
b4de76ca-512a-50c8-97ba-adcf5e55f439
709
0
Title: .NET testing framework advice I'm looking to introduce a unit testing framework into the mix at my job. We're using Visual Studio 2005 (though we may be moving to 2008 within the next six months) and work primarily in C#. If the framework has some kind of IDE integration that would be best, but I'm open to fram...
228
250
[ ".net", "c#" ]
[ "c#", ".net", "visual-studio", "unit-testing", "nunit" ]
{"accepted_answer_id":713,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T14:53:53.550000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2020-07-30T10:57:38.657000+00:00","last_edit_date":"2020-07-30T10:39:38.410000+00...
[ 0.026031494140625, -0.006740570068359375, -0.0261383056640625, -0.01061248779296875, 0.007152557373046875, -0.0019931793212890625, -0.0031795501708984375, 0.02203369140625, 0.00389862060546875, -0.0087890625, -0.04620361328125, -0.01090240478515625, 0.0188751220703125, 0.0275421142578125, ...
[ 5, 23, 47, 99, 344, 442, 642, 759, 1257, 1401, 1543, 1884, 2021, 2594, 2685, 2806, 2856, 2965, 3789, 3934, 4078, 4127, 4358, 4488, 4904, 5423, 6528, 6773, 7154, 7175, 7225, 8781, 9803, 11814, 12447, 13380, 15044, 16487, 17368, 17664, 17...
[ 0.0311279296875, 0.014892578125, 0.056640625, 0.0269775390625, 0.043212890625, 0.05078125, 0.0126953125, 0.012451171875, 0.0654296875, 0.00830078125, 0.011474609375, 0.0361328125, 0.126953125, 0.010009765625, 0.080078125, 0.031982421875, 0.0009765625, 0.09130859375, 0.01513671875...
50cc8033-1a9a-570c-9b39-630fb3b16887
752
0
Title: How to create a new object instance from a Type One may not always know the Type of an object at compile-time, but may need to create an instance of the Type. How do you get a new object instance from a Type?
53
53
[ ".net", "c#" ]
[ "c#", ".net", "performance", "reflection", "types" ]
{"accepted_answer_id":755,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T16:29:03.607000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2022-11-16T07:35:48.033000+00:00","last_edit_date":"2020-04-19T17:56:29.830000+00...
[ 0.00501251220703125, 0.04815673828125, -0.012451171875, 0.0110931396484375, 0.0257415771484375, -0.0305938720703125, -0.015655517578125, 0.0226593017578125, 0.017791748046875, 0.0016384124755859375, -0.033203125, -0.0285797119140625, -0.007381439208984375, -0.0257415771484375, -0.0059585...
[ 4, 10, 47, 54, 99, 111, 142, 398, 959, 1284, 1295, 1340, 1543, 2046, 3525, 3714, 3871, 6032, 6561, 9969, 11249, 11343, 28282, 36746, 48962, 60457, 110527 ]
[ 0.0126953125, 0.03759765625, 0.045654296875, 0.0146484375, 0.010986328125, 0.039794921875, 0.041015625, 0.0146484375, 0.06396484375, 0.028564453125, 0.107421875, 0.1181640625, 0.061279296875, 0.0869140625, 0.1435546875, 0.1337890625, 0.06787109375, 0.056640625, 0.08984375, 0.10...
d3c5ac1d-44f6-5673-8f0c-48b9574141ce
832
0
Title: How do I most elegantly express left join with aggregate SQL as LINQ query SQL: SELECT u.id, u.name, isnull(MAX(h.dateCol), '1900-01-01') dateColWithDefault FROM universe u LEFT JOIN history h ON u.id=h.id AND h.dateCol<GETDATE()-1 GROUP BY u.Id, u.name
94
99
[ "c#" ]
[ "c#", "linq", "left-join" ]
{"accepted_answer_id":837,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T21:22:52.717000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2020-03-18T11:21:57.237000+00:00","last_edit_date":"2015-04-07T12:52:29.133000+00:00","qu...
[ 0.04058837890625, -0.008056640625, -0.0012531280517578125, -0.0195770263671875, 0.005756378173828125, 0.0138397216796875, -0.004802703857421875, 0.0140228271484375, 0.0236358642578125, -0.020050048828125, -0.0113983154296875, -0.0019683837890625, 0.0004420280456542969, -0.00578689575195312...
[ 5, 11, 13, 41, 54, 71, 75, 87, 127, 237, 397, 532, 538, 568, 678, 1096, 1294, 2684, 2737, 5622, 5759, 6746, 6755, 7136, 8852, 11249, 11627, 14997, 17428, 17489, 21253, 25217, 25737, 27650, 29197, 32692, 33284, 35746, 36510, 45669, 46610...
[ 0.058349609375, 0.09765625, 0.0478515625, 0.1181640625, 0.007568359375, 0.06396484375, 0.1044921875, 0.002197265625, 0.0771484375, 0.05126953125, 0.033203125, 0.154296875, 0.010498046875, 0.011962890625, 0.034912109375, 0.09716796875, 0.09130859375, 0.0556640625, 0.1748046875, ...
9e61459e-9cd7-5192-9e75-baa4983e3c41
930
0
Title: How do I connect to a database and loop over a recordset in C#? What's the simplest way to connect and query a database for a set of records in C#?
41
44
[ "c#" ]
[ "c#", "database", "loops", "connection" ]
{"accepted_answer_id":951,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T00:47:25.143000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-12-18T12:28:49.403000+00:00","last_edit_date":"2013-12-07T23:45:54.333000+00:00","qu...
[ 0.0116729736328125, -0.019775390625, -0.0151214599609375, -0.023223876953125, -0.00702667236328125, -0.01690673828125, -0.01715087890625, 0.0020542144775390625, 0.004673004150390625, 0.0343017578125, -0.037139892578125, -0.0014142990112304688, 0.0146484375, -0.0012655258178710938, 0.0097...
[ 7, 18, 41, 47, 100, 126, 136, 313, 645, 1294, 3917, 4904, 5423, 11249, 30362, 37067, 40956, 48962, 63399, 115923 ]
[ 0.026611328125, 0.04833984375, 0.0908203125, 0.1162109375, 0.047119140625, 0.1611328125, 0.057373046875, 0.038330078125, 0.1396484375, 0.11328125, 0.03662109375, 0.236328125, 0.1142578125, 0.040771484375, 0.119140625, 0.1953125, 0.1845703125, 0.0576171875, 0.2275390625, 0.20898...
aad55b15-f81c-5f5f-94f5-257a224423ad
944
0
Title: Unhandled Exception Handler in .NET 1.1 I'm maintaining a .NET 1.1 application and one of the things I've been tasked with is making sure the user doesn't see any unfriendly error notifications. I've added handlers to Application.ThreadException and AppDomain.CurrentDomain.UnhandledException, which do get cal...
166
187
[ ".net", "c#" ]
[ "c#", ".net", "exception" ]
{"accepted_answer_id":1016,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T01:15:38.067000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2022-01-28T06:42:56.517000+00:00","last_edit_date":"2019-01-20T13:46:09.923000+00...
[ 0.0016298294067382812, -0.0013055801391601562, -0.0196990966796875, -0.0261993408203125, -0.0093841552734375, -0.009796142578125, -0.0128631591796875, 0.0243072509765625, 0.013153076171875, 0.0119171142578125, -0.036590576171875, -0.006488800048828125, 0.007080078125, 0.01032257080078125, ...
[ 5, 7, 23, 51, 71, 110, 313, 408, 474, 603, 992, 1957, 2967, 3917, 5443, 5570, 5659, 7464, 8331, 9077, 10639, 14256, 16530, 17777, 18499, 19279, 24931, 26519, 28484, 29806, 34831, 35839, 35863, 38245, 38415, 38937, 39116, 44116, 46526, 489...
[ 0.021728515625, 0.0810546875, 0.001708984375, 0.1064453125, 0.04345703125, 0.00048828125, 0.0361328125, 0.126953125, 0.060546875, 0.1552734375, 0.1015625, 0.0634765625, 0.06640625, 0.064453125, 0.072265625, 0.1474609375, 0.09130859375, 0.107421875, 0.039306640625, 0.02758789062...
4b37d795-b908-5402-9034-16314015c0bf
1,010
0
Title: How to get the value of built, encoded ViewState? I need to grab the base64-encoded representation of the ViewState. Obviously, this would not be available until fairly late in the request lifecycle, which is OK. For example, if the output of the page includes: <input type="hidden" name="__VIEWSTATE" id=...
174
198
[ "c#" ]
[ "c#", "asp.net", "viewstate" ]
{"accepted_answer_id":1074,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T03:59:42.557000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2022-01-20T14:57:11.620000+00:00","last_edit_date":"2022-01-20T14:57:11.620000+00:00","q...
[ -0.021514892578125, -0.0234222412109375, -0.004428863525390625, -0.025909423828125, -0.01218414306640625, -0.024017333984375, -0.0164031982421875, 0.0221099853515625, -0.0007877349853515625, 0.033050537109375, -0.035675048828125, -0.0063018798828125, 0.02496337890625, -0.018310546875, 0....
[ 13, 22, 27, 47, 64, 70, 111, 397, 434, 555, 647, 758, 903, 1363, 2046, 2795, 3229, 3647, 3714, 3871, 3917, 4420, 7077, 8752, 9191, 9325, 10644, 10723, 11249, 13307, 14315, 15080, 17306, 18431, 18811, 19882, 20949, 21290, 23282, 26598, 2...
[ 0.1494140625, 0.0673828125, 0.06103515625, 0.04248046875, 0.04638671875, 0.048095703125, 0.0311279296875, 0.012451171875, 0.030029296875, 0.123046875, 0.0184326171875, 0.03759765625, 0.021240234375, 0.01806640625, 0.1298828125, 0.10400390625, 0.01025390625, 0.1396484375, 0.075195...
4864cfc6-c02c-5367-91b8-33fa19b4c6f0
1,037
0
Title: Displaying Flash content in a C# WinForms application What is the best way to display Flash content in a C# WinForms application? I would like to create a user control (similar to the current PictureBox) that will be able to display images and flash content. It would be great to be able to load the flash cont...
84
87
[ "c#" ]
[ "c#", "winforms", "flash", "adobe", "macromedia" ]
{"accepted_answer_id":1039,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T05:35:52.240000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-02-28T19:34:47.230000+00:00","last_edit_date":"2013-03-22T09:28:21.557000+00:00","q...
[ -0.0010290145874023438, 0.0019025802612304688, -0.009490966796875, -0.006683349609375, -0.009246826171875, -0.0218353271484375, -0.0220794677734375, 0.02386474609375, -0.005939483642578125, 0.020172119140625, -0.021728515625, 0.0008764266967773438, 0.0379638671875, -0.0287628173828125, 0...
[ 7, 23, 47, 87, 136, 214, 313, 320, 1221, 1295, 1884, 2806, 2965, 3501, 3917, 4904, 6226, 6782, 10941, 11435, 12096, 17686, 19048, 28282, 28338, 28750, 30128, 38415, 38937, 43079, 43257, 43581, 44116, 48962, 62318, 72295, 72367, 75973, 90045...
[ 0.111328125, 0.078125, 0.013671875, 0.00341796875, 0.060546875, 0.0322265625, 0.05615234375, 0.006103515625, 0.0142822265625, 0.0234375, 0.08984375, 0.050048828125, 0.1142578125, 0.0029296875, 0.08642578125, 0.201171875, 0.2109375, 0.07080078125, 0.2255859375, 0.0830078125, 0...
e4316d88-0ce6-5987-ad2c-850a72b25d6e
1,040
0
Title: How do I delete a file which is locked by another process in C#? I'm looking for a way to delete a file which is locked by another process using C#. I suspect the method must be able to find which process is locking the file (perhaps by tracking the handles, although I'm not sure how to do this in C#) then clos...
90
103
[ "c#" ]
[ "c#", "file-locking" ]
{"accepted_answer_id":1044,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T05:45:22.080000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2023-01-06T19:40:55.153000+00:00","last_edit_date":"2011-08-20T23:34:44.577000+00:00","q...
[ 0.043975830078125, -0.0144805908203125, -0.0097503662109375, 0.0184326171875, 0.0152435302734375, -0.0024814605712890625, 0.004489898681640625, -0.0224609375, 0.004520416259765625, -0.01377105712890625, -0.04656982421875, -0.014892578125, -0.01104736328125, -0.045867919921875, 0.00897979...
[ 5, 10, 23, 47, 54, 83, 87, 100, 132, 214, 297, 313, 390, 3129, 3917, 4657, 4904, 7413, 8110, 9433, 11249, 11435, 15700, 16487, 17368, 19048, 20903, 28484, 28560, 34831, 42724, 46485, 48962, 55300, 56776, 92610, 154109 ]
[ 0.013671875, 0.0238037109375, 0.0341796875, 0.0634765625, 0.05419921875, 0.0546875, 0.068359375, 0.0029296875, 0.0308837890625, 0.1025390625, 0.1435546875, 0.050048828125, 0.054443359375, 0.03076171875, 0.0556640625, 0.1435546875, 0.203125, 0.05078125, 0.009033203125, 0.1572265...
30a26207-4e8c-5ca9-8e6c-b4f518b62215
1,189
0
Title: ViewState invalid only in Safari One of the sites I maintain relies heavily on the use of ViewState (it isn't my code). However, on certain pages where the ViewState is extra-bloated, Safari throws a "Validation of viewstate MAC failed" error. This appears to only happen in Safari. Firefox, IE and Opera all l...
79
91
[ ".net", "c#" ]
[ "c#", ".net", "safari", "viewstate" ]
{"accepted_answer_id":1190,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T12:38:21.263000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2019-01-20T13:45:08.197000+00:00","last_edit_date":"2019-01-20T13:45:08.197000+00...
[ -0.01030731201171875, -0.026885986328125, -0.026885986328125, -0.024627685546875, 0.020721435546875, 0.0000864863395690918, -0.0083465576171875, 0.016815185546875, -0.0007033348083496094, 0.006839752197265625, -0.021087646484375, 0.00669097900390625, 0.011016845703125, -0.02191162109375, ...
[ 13, 18, 23, 98, 111, 532, 2320, 4173, 4527, 4734, 5115, 5701, 12986, 15271, 16556, 16912, 18151, 18499, 19888, 24233, 27686, 28702, 29805, 33306, 37967, 42272, 43568, 48962, 53383, 56112, 56649, 65771, 72367, 75536, 76104, 78826, 87628, 10425...
[ 0.15625, 0.02490234375, 0.099609375, 0.035888671875, 0.0634765625, 0.154296875, 0.06640625, 0.0927734375, 0.031005859375, 0.0869140625, 0.027587890625, 0.0147705078125, 0.1328125, 0.05712890625, 0.1796875, 0.197265625, 0.0751953125, 0.146484375, 0.26171875, 0.0419921875, 0.09...
9c2329b7-afba-5042-969e-19b21eb740c4
1,241
0
Title: Asynchronous multi-direction server-client communication over the same open socket? I have a client-server app where the client is on a Windows Mobile 6 device, written in C++ and the server is on full Windows and written in C#. Originally, I only needed it to send messages from the client to the server, with...
248
272
[ "c#", "c++" ]
[ "c#", "c++", "sockets" ]
{"accepted_answer_id":1275,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T13:52:25.090000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2023-06-01T12:01:40.347000+00:00","last_edit_date":"2023-06-01T12:01:40.347000+00:...
[ -0.0322265625, 0.00550079345703125, -0.005001068115234375, 0.01441192626953125, -0.01476287841796875, -0.033416748046875, -0.0085296630859375, 0.020233154296875, 0.02587890625, 0.00882720947265625, -0.022125244140625, 0.02093505859375, 0.049652099609375, 0.00823211669921875, -0.001191139...
[ 9, 23, 70, 100, 118, 221, 305, 373, 645, 756, 936, 1733, 1884, 2053, 2499, 2685, 3773, 3917, 4027, 4393, 4420, 4527, 4734, 4904, 5117, 5423, 5701, 6024, 8705, 9325, 9803, 10723, 10821, 12654, 13736, 14192, 15700, 17368, 17569, 18234, 18...
[ 0.012939453125, 0.002685546875, 0.000244140625, 0.0791015625, 0.1181640625, 0.0869140625, 0.1337890625, 0.039794921875, 0.035400390625, 0.045166015625, 0.1240234375, 0.1044921875, 0.0087890625, 0.08642578125, 0.0556640625, 0.00048828125, 0.083984375, 0.06201171875, 0.1513671875, ...
f1a3bc0d-80a7-5136-9d18-9260ec86e232
1,304
0
Title: How to check for file lock? Is there any way to check whether a file is locked without using a try/catch block? Right now, the only way I know of is to just open the file and catch any System.IO.IOException.
53
58
[ ".net", "c#" ]
[ "c#", ".net", "io", "filelock" ]
{"accepted_answer_id":1309,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":"2016-05-09T05:08:15.053000+00:00","creation_date":"2008-08-04T14:56:57.490000+00:00","has_accepted_answer":true,"is_closed":true,"languages":[".net","c#"],"last_activity_date":"2025-01-29T21:40:37.690000+00:00","last_edit_date":...
[ -0.0019054412841796875, -0.0216217041015625, -0.0006055831909179688, 0.01216888427734375, 0.0190277099609375, -0.0184326171875, -0.0030727386474609375, 0.024932861328125, 0.01453399658203125, 0.0031452178955078125, -0.0233917236328125, -0.019378662109375, 0.017364501953125, -0.026229858398...
[ 47, 64, 83, 100, 206, 297, 2499, 3714, 3917, 4460, 4734, 5036, 9790, 9803, 11249, 11435, 12353, 12765, 15490, 17780, 36766, 46389, 48962, 56776, 63928, 105556 ]
[ 0.07958984375, 0.002685546875, 0.0732421875, 0.10205078125, 0.0439453125, 0.142578125, 0.00537109375, 0.07373046875, 0.060302734375, 0.08349609375, 0.0498046875, 0.00830078125, 0.1376953125, 0.08642578125, 0.0673828125, 0.2109375, 0.042236328125, 0.212890625, 0.0556640625, 0.12...
bf5fa7b8-6b0c-52c8-b51e-6de5ca2f9dff
1,528
0
Title: Hiding inherited members I'm looking for some way to effectively hide inherited members. I have a library of classes which inherit from common base classes. Some of the more recent descendant classes inherit dependency properties which have become vestigial and can be a little confusing when using IntelliSense ...
191
219
[ "c#" ]
[ "c#", "wpf", "silverlight", "polymorphism", "dependency-properties" ]
{"accepted_answer_id":1556,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T19:13:54.693000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2021-10-25T11:44:49.130000+00:00","last_edit_date":"2015-04-30T10:33:31.247000+00:00","q...
[ 0.007572174072265625, 0.019012451171875, -0.00974273681640625, 0.0239410400390625, 0.04693603515625, -0.0278167724609375, 0.0003190040588378906, 0.0307464599609375, 0.0149688720703125, -0.0186614990234375, -0.043426513671875, 0.01971435546875, 0.0172576904296875, -0.0001068115234375, 0.0...
[ 18, 23, 47, 54, 111, 112, 150, 214, 217, 223, 294, 601, 678, 756, 831, 959, 1236, 1264, 1274, 1294, 1295, 1821, 1884, 3334, 3525, 3647, 3674, 3714, 3917, 4331, 5608, 5928, 5974, 6183, 6226, 6238, 10002, 10176, 11814, 15403, 16487, 166...
[ 0.041015625, 0.123046875, 0.00537109375, 0.001220703125, 0.0361328125, 0.1826171875, 0.05224609375, 0.115234375, 0.0361328125, 0.111328125, 0.04248046875, 0.060546875, 0.06298828125, 0.010009765625, 0.07177734375, 0.078125, 0.03466796875, 0.115234375, 0.2109375, 0.041015625, ...
113a533b-40e3-5438-b5a5-596aae4b33b4
1,535
0
Title: Reducing duplicate error handling code in C#? I've never been completely happy with the way exception handling works, there's a lot exceptions and try/catch brings to the table (stack unwinding, etc.), but it seems to break a lot of the OO model in the process. Anyway, here's the problem: Let's say you have...
419
475
[ "c#" ]
[ "c#", "exception", "error-handling" ]
{"accepted_answer_id":2047,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T19:21:48.530000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2020-12-16T01:54:30.937000+00:00","last_edit_date":null,"question_id":1535,"score":40,"s...
[ 0.00926971435546875, 0.00543975830078125, -0.00719451904296875, -0.00041794776916503906, 0.032562255859375, -0.0231781005859375, 0.014739990234375, 0.050872802734375, 0.03900146484375, 0.026275634765625, -0.03424072265625, -0.00772857666015625, -0.007045745849609375, -0.0162811279296875, ...
[ 28, 34, 38, 42, 67, 126, 133, 206, 248, 313, 329, 456, 853, 903, 1294, 1543, 1733, 1884, 2594, 2684, 2967, 3180, 3299, 3675, 3871, 4332, 4460, 4904, 5915, 6056, 6096, 8306, 9790, 10267, 10484, 11001, 11193, 11435, 11907, 12638, 13695, ...
[ 0.1328125, 0.09912109375, 0.02978515625, 0.07421875, 0.05810546875, 0.009765625, 0.091796875, 0.0791015625, 0.0150146484375, 0.0174560546875, 0.05126953125, 0.056884765625, 0.0830078125, 0.046630859375, 0.0498046875, 0.041015625, 0.11328125, 0.0478515625, 0.00830078125, 0.06445...
523a80c3-9ae2-5002-884a-8650a26b47ff
1,760
0
Title: .NET unit testing packages I am getting back into a bit more .NET after a few-years of not using it full-time and am wondering what the good unit testing packages are these days. I'm familiar with NUnit (a few years ago) and have played briefly around with IronRuby, with the goal of getting something like RSp...
122
133
[ ".net", "c#" ]
[ "c#", ".net", "unit-testing", "testing" ]
{"accepted_answer_id":1821,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":"2019-12-30T16:19:37.810000+00:00","creation_date":"2008-08-05T00:51:49.177000+00:00","has_accepted_answer":true,"is_closed":true,"languages":[".net","c#"],"last_activity_date":"2020-07-30T11:16:51.963000+00:00","last_edit_date":...
[ 0.0103912353515625, -0.005619049072265625, -0.018829345703125, 0.003204345703125, 0.01142120361328125, -0.0004329681396484375, -0.006256103515625, 0.007289886474609375, 0.007045745849609375, -0.0103912353515625, -0.044952392578125, -0.01439666748046875, 0.0305023193359375, 0.01519012451171...
[ 5, 7, 70, 87, 444, 621, 678, 959, 1272, 1286, 1884, 2367, 3688, 3714, 3934, 4127, 4393, 4420, 4785, 5045, 5155, 5369, 5809, 6032, 6097, 6650, 6773, 7103, 7289, 7730, 10846, 10932, 11782, 13312, 16031, 17368, 17777, 18057, 18912, 20949, ...
[ 0.08203125, 0.1259765625, 0.009521484375, 0.007568359375, 0.010986328125, 0.057861328125, 0.0196533203125, 0.05322265625, 0.1513671875, 0.1015625, 0.017578125, 0.0546875, 0.005615234375, 0.0751953125, 0.08447265625, 0.16015625, 0.01123046875, 0.1103515625, 0.09130859375, 0.0213...
7371e0fb-3733-51ff-a2a9-1bbd95fcf80c
1,836
0
Title: Wiggling the mouse OK. This is a bit of a vanity app, but I had a situation today at work where I was in a training class and the machine was set to lock every 10 minutes. Well, if the trainers got excited about talking - as opposed to changing slides - the machine would lock up. I'd like to write a teeny app...
144
144
[ "c#" ]
[ "c#", "winapi", "mouse" ]
{"accepted_answer_id":1843,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T02:51:37.420000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2021-01-07T23:23:38.190000+00:00","last_edit_date":"2013-02-06T00:29:06.207000+00:00","q...
[ 0.015655517578125, 0.00464630126953125, -0.0127410888671875, 0, 0.0126190185546875, -0.026641845703125, -0.0275726318359375, -0.01320648193359375, 0.0209197998046875, -0.0191650390625, -0.006778717041015625, 0.007099151611328125, 0.0380859375, -0.03997802734375, 0.019287109375, 0.02185...
[ 23, 47, 53, 54, 70, 106, 131, 138, 201, 209, 313, 390, 678, 831, 1176, 1257, 1284, 1299, 1884, 2069, 2481, 2685, 3714, 4027, 4488, 4785, 4904, 5140, 5423, 7003, 7154, 8901, 9815, 11907, 14315, 14602, 14633, 16648, 18507, 18925, 19379, ...
[ 0.009033203125, 0.010009765625, 0.06201171875, 0.0087890625, 0.0277099609375, 0.08740234375, 0.06494140625, 0.080078125, 0.1298828125, 0.123046875, 0.0078125, 0.03662109375, 0.0196533203125, 0.002197265625, 0.015869140625, 0.08935546875, 0.025146484375, 0.1708984375, 0.072265625,...
187d99d2-035d-5b20-b803-6d98efd16ea4
1,848
0
Title: Locating Text within image I am currently working on a project and my goal is to locate text in an image. OCR'ing the text is not my intention as of yet. I want to basically obtain the bounds of text within an image. I am using the AForge.Net imaging component for manipulation. Any assistance in some sense or a...
127
133
[ "c#" ]
[ "c#", "image", "image-processing", "artificial-intelligence" ]
{"accepted_answer_id":1856,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T03:04:43.683000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2013-04-19T14:54:49.080000+00:00","last_edit_date":"2013-01-08T12:45:28.863000+00:00","q...
[ 0.0070037841796875, -0.00951385498046875, -0.00933837890625, -0.04278564453125, -0.001995086669921875, -0.010162353515625, 0.0008087158203125, -0.01123046875, -0.00005817413330078125, -0.0125885009765625, -0.0190277099609375, 0.0197296142578125, 0.03497314453125, -0.00762176513671875, 0....
[ 7, 23, 28, 47, 62, 67, 83, 98, 111, 177, 180, 276, 398, 429, 442, 959, 1295, 1916, 3060, 3370, 3444, 6991, 7986, 12133, 12147, 13452, 14373, 15700, 16792, 17368, 18537, 20697, 22578, 24129, 24447, 28032, 28641, 29569, 33306, 36439, 4310...
[ 0.080078125, 0.1044921875, 0.02392578125, 0.033935546875, 0.05322265625, 0.1005859375, 0.013671875, 0.008544921875, 0.091796875, 0.060302734375, 0.087890625, 0.09423828125, 0.000732421875, 0.1748046875, 0.0301513671875, 0.064453125, 0.1552734375, 0.103515625, 0.06103515625, 0.1...
8a49023d-cd23-57d4-8d80-90d7f2e9b35a
1,898
0
Title: Import CSV file to strongly typed data structure in .Net What's the best way to import a CSV file into a strongly-typed data structure?
34
41
[ "c#", "vb.net" ]
[ "c#", "vb.net", "file", "csv", "import" ]
{"accepted_answer_id":null,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":"2012-09-27T12:30:14.907000+00:00","creation_date":"2008-08-05T04:43:22.187000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["c#","vb.net"],"last_activity_date":"2020-06-18T21:50:10.530000+00:00","last_edit_dat...
[ 0.01519775390625, 0.003116607666015625, -0.0260009765625, -0.005756378173828125, -0.00296783447265625, -0.00240325927734375, -0.00563812255859375, 0.005786895751953125, 0.00902557373046875, 0.020660400390625, -0.044403076171875, -0.004985809326171875, 0.020416259765625, -0.05010986328125, ...
[ 5, 9, 47, 70, 71, 313, 538, 2053, 2965, 3917, 3934, 10644, 11435, 24447, 24927, 37515, 43486, 45646, 48962, 50986, 92966 ]
[ 0.0242919921875, 0.01025390625, 0.1201171875, 0.0177001953125, 0.103515625, 0.109375, 0.107421875, 0.0849609375, 0.1220703125, 0.078125, 0.14453125, 0.18359375, 0.154296875, 0.185546875, 0.240234375, 0.1826171875, 0.306640625, 0.1884765625, 0.0400390625, 0.2109375, 0.2109375 ...
8dd560b6-6d1d-512b-8431-72e57f2edcd8
1,936
0
Title: How to RedirectToAction in ASP.NET MVC without losing request data Using ASP.NET MVC there are situations (such as form submission) that may require a RedirectToAction. One such situation is when you encounter validation errors after a form submission and need to redirect back to the form, but would like the...
131
162
[ "c#" ]
[ "c#", "asp.net-mvc" ]
{"accepted_answer_id":1940,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T05:33:41.697000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2020-06-18T13:31:52.997000+00:00","last_edit_date":"2016-08-15T02:03:16.617000+00:00","q...
[ 0.005634307861328125, 0.0002065896987915039, -0.0194549560546875, 0.004001617431640625, 0.0019121170043945312, 0.0099029541015625, 0.0006780624389648438, 0.0372314453125, 0.00830078125, 0.0174407958984375, -0.02325439453125, 0.0099029541015625, 0.010498046875, -0.0110931396484375, 0.0244...
[ 23, 47, 70, 111, 132, 276, 284, 345, 388, 456, 831, 853, 959, 1543, 1614, 1884, 2053, 3173, 3642, 3871, 4420, 4527, 7103, 7311, 7763, 8305, 9191, 10763, 11249, 15490, 16648, 17777, 18499, 21150, 21455, 22631, 27875, 31862, 44622, 44961, ...
[ 0.00244140625, 0.00390625, 0.0177001953125, 0.0252685546875, 0.0302734375, 0.0537109375, 0.185546875, 0.01171875, 0.0888671875, 0.142578125, 0.021240234375, 0.158203125, 0.03955078125, 0.005859375, 0.095703125, 0.072265625, 0.1630859375, 0.193359375, 0.0269775390625, 0.02978515...
27bfbbac-ca62-54e7-b543-8c205f88fda8
1,994
0
Title: Any solution to Illegal Cross Thread Operation exception? When you data bind in C#, the thread that changes the data causes the control to change too. But if this thread is not the one on which the control was created, you'll get an Illegal Cross Thread Operation exception. Is there anyway to prevent this?
66
69
[ "c#" ]
[ "c#", "data-binding" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T07:45:38.310000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#"],"last_activity_date":"2026-04-06T17:09:02.180000+00:00","last_edit_date":"2017-12-22T19:05:12.317000+00:00","...
[ -0.00040149688720703125, 0.000545501708984375, -0.01230621337890625, -0.0036525726318359375, 0.0244903564453125, 0.0013790130615234375, -0.0157623291015625, -0.0066070556640625, 0.0281219482421875, 0.022430419921875, -0.01454925537109375, 0.0012578964233398438, 0.01169586181640625, -0.0303...
[ 23, 47, 70, 83, 98, 313, 891, 959, 2053, 4904, 5792, 6226, 15549, 28541, 29806, 47832, 56282, 65572, 68557, 75935, 86966, 86997, 102203, 109954, 113660, 131527, 136719 ]
[ 0.015380859375, 0.0206298828125, 0.0167236328125, 0.008544921875, 0.0150146484375, 0.049072265625, 0.068359375, 0.1044921875, 0.125, 0.1865234375, 0.014892578125, 0.2099609375, 0.1669921875, 0.04296875, 0.1298828125, 0.1884765625, 0.1318359375, 0.1572265625, 0.2109375, 0.088867...
420a69a9-2cde-5ef3-b83b-2e5bb0295758
1,995
0
Title: Most Efficient Way to Test Object Type I have values stored as strings in a DataTable where each value could really represent an int, double, or string (they were all converted to strings during an import process from an external data source). I need to test and see what type each value really is. What is mor...
126
137
[ ".net", "c#" ]
[ "c#", ".net", "double", "int" ]
{"accepted_answer_id":2001,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T07:49:11.547000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2015-12-14T09:16:52.833000+00:00","last_edit_date":"2015-12-14T09:16:52.833000+00...
[ 0.0273895263671875, 0.0040435791015625, -0.006374359130859375, -0.002140045166015625, 0.0024204254150390625, -0.0280914306640625, -0.0177001953125, 0.01080322265625, 0.00785064697265625, -0.0057525634765625, -0.029632568359375, 0.00778961181640625, -0.0021533966064453125, -0.00163745880126...
[ 18, 23, 47, 83, 237, 618, 1286, 1957, 2053, 2367, 2886, 3034, 3789, 4343, 5809, 6183, 8647, 10644, 11809, 12638, 14858, 17006, 24500, 24927, 29568, 30646, 31344, 33636, 34292, 38415, 40858, 41929, 42261, 43240, 45964, 47881, 48962, 55300, 6...
[ 0.1474609375, 0.09912109375, 0.061279296875, 0.056396484375, 0.005859375, 0.091796875, 0.09716796875, 0.07275390625, 0.0286865234375, 0.006103515625, 0.1240234375, 0.2236328125, 0.021240234375, 0.07568359375, 0.05322265625, 0.1376953125, 0.2421875, 0.22265625, 0.05517578125, 0....
26860ca3-3748-5fe7-89d5-663e8e71d442
2,154
0
Title: Developing for ASP.NET-MVC without Visual Studio Instead of writing my ASP.NET C# applications in Visual Studio, I used my favorite text editor UltraEdit32. Is there any way I can implement MVC without the use of VS?
53
55
[ "c#" ]
[ "c#", "asp.net-mvc", "visual-studio" ]
{"accepted_answer_id":2335,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T12:13:40.483000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2020-02-24T11:10:09.607000+00:00","last_edit_date":"2020-02-24T11:10:09.607000+00:00","q...
[ 0.00872039794921875, -0.005687713623046875, -0.01302337646484375, -0.0098419189453125, 0.0245208740234375, -0.023345947265625, -0.0159149169921875, 0.042449951171875, -0.019805908203125, 0.005954742431640625, -0.040771484375, 0.00789642333984375, 0.033477783203125, 0.037017822265625, 0.0...
[ 23, 100, 214, 276, 313, 441, 759, 831, 3917, 4527, 4904, 6460, 7986, 11814, 15490, 17777, 22968, 29479, 30391, 32562, 35958, 40304, 44160, 48962, 56349, 61922, 73372, 86685, 125270, 147153, 175399, 219065 ]
[ 0.042724609375, 0.0306396484375, 0.029541015625, 0.0791015625, 0.00927734375, 0.1640625, 0.008544921875, 0.010009765625, 0.03759765625, 0.0703125, 0.150390625, 0.21484375, 0.115234375, 0.08740234375, 0.115234375, 0.125, 0.20703125, 0.1728515625, 0.19921875, 0.1171875, 0.15917...
c1b24eaa-45dd-5da5-81d4-38061ed98bfc
2,209
0
Title: How can I change the background of a masterpage from the code behind of a content page? I specifically want to add the style of background-color to the <body> tag of a master page, from the code behind (C#) of a content page that uses that master page. I have different content pages that need to make the mas...
174
184
[ ".net", "c#" ]
[ "c#", "asp.net", ".net", "master-pages" ]
{"accepted_answer_id":2233,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T12:46:45.003000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2015-11-24T06:36:46.773000+00:00","last_edit_date":"2014-05-14T17:56:39.150000+00...
[ -0.01332855224609375, -0.007549285888671875, 0.00870513916015625, -0.0198974609375, 0.0157470703125, -0.01776123046875, -0.027008056640625, 0.0191802978515625, -0.0028285980224609375, 0.024169921875, -0.004055023193359375, -0.00930023193359375, 0.0362548828125, 0.0014801025390625, 0.0272...
[ 7, 9, 13, 18, 47, 70, 87, 100, 111, 116, 831, 1286, 1295, 1556, 3444, 3871, 4028, 4488, 4527, 4598, 4734, 4904, 7909, 8821, 9191, 10941, 11249, 12620, 12921, 13315, 14858, 15190, 15549, 16487, 18151, 18897, 20623, 22469, 28848, 29806, 3...
[ 0.00732421875, 0.035400390625, 0.03759765625, 0.004638671875, 0.0147705078125, 0.072265625, 0.0341796875, 0.0247802734375, 0.07177734375, 0.041259765625, 0.07275390625, 0.013916015625, 0.1083984375, 0.0152587890625, 0.048583984375, 0.053466796875, 0.111328125, 0.043701171875, 0.0...
fe534862-d5d6-5d57-ae7f-c90902f4d792
2,214
0
Title: What's the best way to implement BDD/TDD in .NET 2.0? I'm looking to add a testing suite to my application, however I can't move to the newer testing frameworks for .NET 3.5. Does anyone have a suggestion about good testing frameworks to use?
66
68
[ ".net", "c#" ]
[ "c#", ".net", "testing", "tdd", "bdd" ]
{"accepted_answer_id":3443,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":"2013-07-12T02:38:12.527000+00:00","creation_date":"2008-08-05T12:50:15.543000+00:00","has_accepted_answer":true,"is_closed":true,"languages":[".net","c#"],"last_activity_date":"2020-07-07T13:16:23.057000+00:00","last_edit_date":...
[ 0.01346588134765625, 0.01020050048828125, -0.0202789306640625, -0.00806427001953125, 0.002994537353515625, -0.015655517578125, -0.029541015625, 0.0173187255859375, 0.018035888671875, 0.003780364990234375, -0.0462646484375, -0.013641357421875, 0.032958984375, 0.0246734619140625, 0.0362854...
[ 5, 18, 23, 47, 64, 70, 335, 618, 831, 2965, 3525, 3917, 4127, 4527, 4865, 14947, 15190, 16487, 16655, 17777, 24057, 25813, 29479, 35672, 38415, 38704, 48962, 49903, 134234, 170846, 199015 ]
[ 0.028564453125, 0.047119140625, 0.05078125, 0.0299072265625, 0.07373046875, 0.00048828125, 0.1142578125, 0.109375, 0.0498046875, 0.1162109375, 0.001953125, 0.07470703125, 0.0693359375, 0.06689453125, 0.007080078125, 0.1611328125, 0.0849609375, 0.05078125, 0.2158203125, 0.189453...
2d8e166d-fba4-5625-8499-5112e8c605c7
2,250
0
Title: Datatable vs Dataset I currently use a DataTable to get results from a database which I can use in my code. However, many example on the web show using a DataSet instead and accessing the table(s) through the collections method. Is there any advantage, performance wise or otherwise, of using DataSets or Dat...
78
86
[ "c#" ]
[ "c#", "dataset", "datatable" ]
{"accepted_answer_id":2258,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T13:07:40.563000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2021-01-01T13:17:08.647000+00:00","last_edit_date":"2015-04-30T10:30:50.770000+00:00","q...
[ 0.00560760498046875, -0.005550384521484375, -0.0198516845703125, 0.00951385498046875, 0.0227813720703125, -0.0205535888671875, 0.005901336669921875, 0.004787445068359375, 0.01702880859375, 0.03125, -0.036651611328125, 0.004581451416015625, -0.001461029052734375, 0.00408172607421875, -0.0...
[ 10, 126, 237, 294, 618, 707, 831, 1295, 2046, 2499, 2886, 3509, 4527, 5941, 7639, 7831, 11809, 17203, 17368, 18151, 19736, 20209, 22819, 23180, 23718, 27781, 42486, 48962, 50339, 55300, 63399, 64457, 80866, 82424, 90825, 92940, 120262, 132096...
[ 0.002685546875, 0.1845703125, 0.005859375, 0.2138671875, 0.2060546875, 0.035888671875, 0.01513671875, 0.0439453125, 0.05859375, 0.035888671875, 0.212890625, 0.2734375, 0.09521484375, 0.017333984375, 0.05078125, 0.2314453125, 0.1845703125, 0.1171875, 0.060302734375, 0.0888671875...
2a12436a-7185-5317-af76-e5f1d3d030b7
2,256
0
Title: Mapping Stream data to data structures in C# Is there a way of mapping data collected on a stream or array to a data structure or vice-versa? In C++ this would simply be a matter of casting a pointer to the stream as a data type I want to use (or vice-versa for the reverse). e.g in C++: Mystruct * pMyStrct ...
153
167
[ "c#", "c++" ]
[ "c#", "c++", "data-structures" ]
{"accepted_answer_id":2490,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T13:11:14.223000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","c++"],"last_activity_date":"2024-01-09T10:53:56.100000+00:00","last_edit_date":"2024-01-09T10:53:56.100000+00:...
[ 0.0055694580078125, 0.02227783203125, -0.0159149169921875, 0.0231170654296875, 0.01137542724609375, -0.03326416015625, -0.01220703125, 0.0172119140625, 0.03985595703125, 0.0240478515625, -0.01568603515625, -0.007663726806640625, -0.0098419189453125, -0.053070068359375, 0.0384521484375, ...
[ 7, 10, 17, 18, 23, 47, 51, 53, 56, 83, 98, 100, 111, 184, 237, 277, 282, 291, 297, 304, 313, 360, 418, 519, 661, 707, 714, 903, 911, 915, 1230, 1601, 1810, 2053, 2071, 2203, 2646, 2685, 2806, 2982, 3444, 3917, 4527, 4904, 6275, ...
[ 0.072265625, 0.08056640625, 0.06298828125, 0.032470703125, 0.045654296875, 0.1904296875, 0.0272216796875, 0.052734375, 0.0986328125, 0.00244140625, 0.06298828125, 0.0147705078125, 0.041015625, 0.06103515625, 0.03955078125, 0.04150390625, 0.064453125, 0.2197265625, 0.006103515625,...
ca4d6352-04c4-51c8-a553-85be82e55060
2,267
0
Title: How to filter and combine 2 datasets in C# I am building a web page to show a customer what software they purchased and to give them a link to download said software. Unfortunately, the data on what was purchased and the download information are in separate databases so I can't just take care of it with joins i...
174
195
[ ".net", "c#" ]
[ "c#", ".net" ]
{"accepted_answer_id":null,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T13:17:46.830000+00:00","has_accepted_answer":false,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2017-12-21T15:00:28.703000+00:00","last_edit_date":"2017-12-21T15:00:28.703000+0...
[ 0.0300445556640625, -0.005401611328125, -0.0272369384765625, -0.005634307861328125, 0.0164337158203125, -0.00211334228515625, -0.00030994415283203125, -0.002391815185546875, -0.01080322265625, 0.0302886962890625, -0.0133819580078125, 0.00974273681640625, 0.0149688720703125, -0.005985260009...
[ 7, 23, 41, 47, 56, 71, 116, 126, 136, 237, 294, 313, 517, 707, 831, 1295, 1467, 1632, 2053, 2256, 2367, 3095, 3126, 3509, 4420, 4677, 4904, 5303, 7026, 7639, 9191, 10975, 11249, 11522, 11809, 22819, 23180, 27623, 28282, 28875, 31345, ...
[ 0.068359375, 0.005126953125, 0.0546875, 0.042724609375, 0.1259765625, 0.048583984375, 0.1982421875, 0.1630859375, 0.10009765625, 0.059326171875, 0.162109375, 0.0732421875, 0.07861328125, 0.009521484375, 0.002197265625, 0.0281982421875, 0.0203857421875, 0.056396484375, 0.168945312...
5d894105-529a-53ee-9898-d7fff93b2370
2,384
0
Title: Read binary file into a struct I'm trying to read binary data using C#. I have all the information about the layout of the data in the files I want to read. I'm able to read the data "chunk by chunk", i.e. getting the first 40 bytes of data converting it to a string, get the next 40 bytes. Since there are at ...
377
465
[ "c#" ]
[ "c#", "struct", "io", "binaryfiles" ]
{"accepted_answer_id":null,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T14:28:57.607000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#"],"last_activity_date":"2022-03-13T12:38:32.413000+00:00","last_edit_date":"2017-12-21T14:57:51.933000+00:00","...
[ 0.00794219970703125, 0.0218658447265625, -0.020538330078125, -0.0014333724975585938, -0.0016651153564453125, -0.0185089111328125, 0.0015897750854492188, 0.0204315185546875, 0.02783203125, 0.01493072509765625, -0.01158905029296875, -0.0226898193359375, -0.001926422119140625, -0.048736572265...
[ 5, 10, 18, 23, 31, 53, 70, 92, 110, 304, 313, 390, 756, 959, 1112, 1286, 1294, 1295, 1884, 2046, 2053, 2230, 2256, 2394, 3501, 3525, 3564, 3678, 3835, 3934, 4200, 4448, 4677, 4764, 4904, 5045, 5117, 6609, 6635, 6644, 7108, 7235, 776...
[ 0.02392578125, 0.1123046875, 0.0849609375, 0.09375, 0.140625, 0.0284423828125, 0.001708984375, 0.04296875, 0.029541015625, 0.0419921875, 0.05078125, 0.078125, 0.0142822265625, 0.03515625, 0.1162109375, 0.0966796875, 0.046630859375, 0.056640625, 0.0211181640625, 0.00927734375, ...
17e2b6c3-d7e8-5c27-b865-59238b612282
2,483
0
Title: Casting: (NewType) vs. Object as NewType What is actually the difference between these two casts? SomeClass sc = (SomeClass)SomeObject; SomeClass sc2 = SomeObject as SomeClass; Normally, shouldn't they both be explicit casts to the specified type?
65
73
[ ".net", "c#" ]
[ "c#", ".net" ]
{"accepted_answer_id":2487,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":"2019-12-23T13:23:32.393000+00:00","creation_date":"2008-08-05T15:42:30.110000+00:00","has_accepted_answer":true,"is_closed":true,"languages":[".net","c#"],"last_activity_date":"2020-07-05T21:46:58.927000+00:00","last_edit_date":...
[ -0.0020599365234375, 0.014892578125, -0.001140594482421875, -0.00594329833984375, 0.0176544189453125, -0.020477294921875, -0.022247314453125, 0.051788330078125, 0.00682830810546875, 0.0167083740234375, -0.0216522216796875, -0.0143585205078125, -0.01206207275390625, -0.03131103515625, 0.0...
[ 5, 7, 12, 16, 18, 47, 70, 74, 83, 186, 214, 237, 282, 304, 538, 1836, 2203, 2356, 5608, 6097, 6626, 8912, 9023, 10644, 15044, 17721, 20209, 20653, 28723, 31384, 32301, 37702, 46471, 46568, 48962, 58735, 60212, 75161, 134549, 140803, 143...
[ 0.011962890625, 0.0751953125, 0.04736328125, 0.015869140625, 0.007568359375, 0.07421875, 0.07373046875, 0.05859375, 0.042236328125, 0.0189208984375, 0.13671875, 0.10302734375, 0.0830078125, 0.240234375, 0.0341796875, 0.000244140625, 0.10498046875, 0.1416015625, 0.053955078125, ...
4902637d-9efe-5710-b74c-edf0f52abd0c
2,527
0
Title: Find node clicked under context menu How can I find out which node in a tree list the context menu has been activated? For instance right-clicking a node and selecting an option from the menu. I can't use the TreeViews' SelectedNode property because the node is only been right-clicked and not selected.
69
80
[ "c#" ]
[ "c#", "winforms", "treeview", "contextmenu" ]
{"accepted_answer_id":2546,"answer_count":10,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T16:21:14.120000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2020-05-22T07:09:12.397000+00:00","last_edit_date":"2017-03-23T11:41:45.517000+00:00","...
[ 0.045166015625, -0.01390838623046875, -0.00316619873046875, -0.046844482421875, -0.02294921875, 0.01629638671875, 0.01236724853515625, -0.0011663436889648438, 0.0243682861328125, 0.01277923583984375, 0.0007429122924804688, 0.01373291015625, 0.00951385498046875, -0.0008845329284667969, -0...
[ 110, 112, 297, 959, 1379, 1556, 1810, 2809, 3129, 3674, 4527, 5021, 5303, 7108, 7413, 8026, 18158, 26040, 34704, 35829, 36849, 43701, 51620, 53201, 57266, 100474, 101344, 123278, 133291 ]
[ 0.1728515625, 0.16796875, 0.025146484375, 0.01025390625, 0.115234375, 0.051025390625, 0.10546875, 0.053466796875, 0.055419921875, 0.068359375, 0.02587890625, 0.140625, 0.1494140625, 0.078125, 0.1181640625, 0.2177734375, 0.1533203125, 0.1064453125, 0.16015625, 0.1064453125, 0....
0b27db92-b2f6-531a-92be-1f838e75cc63
2,780
0
Title: Converting ARBG to RGB with alpha blending Let's say that we have an ARGB color: Color argb = Color.FromARGB(127, 69, 12, 255); //Light Urple. When this is painted on top of an existing color, the colors will blend. So when it is blended with white, the resulting color is Color.FromARGB(255, 162, 133, 255);...
204
173
[ "c#" ]
[ "c#", "colors" ]
{"accepted_answer_id":2789,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T20:12:20.487000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2016-02-07T01:08:27.133000+00:00","last_edit_date":"2012-05-04T10:00:52.640000+00:00","q...
[ 0.0182952880859375, 0.0034008026123046875, 0.021026611328125, -0.02471923828125, 0.005523681640625, -0.005970001220703125, -0.00814056396484375, -0.01532745361328125, 0.004604339599609375, 0.027923583984375, -0.002777099609375, 0.036834716796875, 0.019134521484375, -0.00531768798828125, ...
[ 47, 83, 144, 147, 187, 214, 427, 678, 717, 814, 1052, 1221, 1657, 1690, 1884, 2203, 2663, 3229, 4143, 4488, 5608, 8359, 8705, 10576, 11909, 11937, 13685, 14612, 16750, 29494, 29806, 35011, 48962, 51193, 64358, 74251, 78369, 85556, 86565, ...
[ 0.12109375, 0.04052734375, 0.103515625, 0.087890625, 0.14453125, 0.087890625, 0.0986328125, 0.1201171875, 0.158203125, 0.1376953125, 0.146484375, 0.000732421875, 0.053955078125, 0.07373046875, 0.010986328125, 0.056884765625, 0.1220703125, 0.0291748046875, 0.028076171875, 0.0529...
2e28607f-2ffb-5e71-b09a-9f6d3609700e
2,785
0
Title: Setting Objects to Null/Nothing after use in .NET Should you set all the objects to null (Nothing in VB.NET) once you have finished with them? I understand that in .NET it is essential to dispose of any instances of objects that implement the IDisposable interface to release some resources although the objec...
210
234
[ ".net", "c#", "vb.net" ]
[ "c#", ".net", "vb.net", "memory-management", "null" ]
{"accepted_answer_id":2839,"answer_count":16,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T20:14:10.560000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#","vb.net"],"last_activity_date":"2023-05-18T13:51:43.993000+00:00","last_edit_date":"2019-05-05T16:53:23...
[ 0.03350830078125, 0.0271759033203125, -0.01184844970703125, 0.0240631103515625, -0.00267791748046875, -0.0173492431640625, -0.035186767578125, 0.026214599609375, 0.0070037841796875, -0.0157928466796875, -0.04547119140625, -0.0083770751953125, -0.0093994140625, -0.010772705078125, 0.02297...
[ 5, 7, 23, 47, 64, 70, 83, 110, 162, 164, 182, 398, 402, 429, 442, 503, 678, 748, 756, 765, 831, 1181, 1221, 1257, 1429, 1733, 1810, 2499, 2856, 2886, 3173, 3229, 3671, 4527, 5021, 5423, 5426, 5609, 6494, 7086, 7103, 7464, 7522, 83...
[ 0.03369140625, 0.0947265625, 0.03759765625, 0.2001953125, 0.009033203125, 0.05224609375, 0.1494140625, 0.029296875, 0.060546875, 0.1103515625, 0.03662109375, 0.0225830078125, 0.1357421875, 0.031494140625, 0.038330078125, 0.140625, 0.1064453125, 0.032958984375, 0.1181640625, 0.0...
0f7ebb31-b06d-5e94-9178-18dc045f5911
2,804
0
Title: How should I translate from screen space coordinates to image space coordinates in a WinForms PictureBox? I have an application that displays an image inside of a Windows Forms PictureBox control. The SizeMode of the control is set to Zoom so that the image contained in the PictureBox will be displayed in an as...
220
248
[ "c#" ]
[ "c#", "winforms", "picturebox" ]
{"accepted_answer_id":2808,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T20:28:30.143000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2012-05-04T09:53:41.417000+00:00","last_edit_date":"2012-05-04T09:53:41.417000+00:00","q...
[ 0.01226806640625, 0.0011949539184570312, 0.0161590576171875, -0.023834228515625, -0.039642333984375, -0.01509857177734375, -0.02288818359375, 0.017578125, -0.005603790283203125, -0.004039764404296875, -0.006046295166015625, 0.0119171142578125, 0.0128631591796875, -0.044830322265625, 0.01...
[ 7, 23, 47, 54, 87, 90, 112, 214, 903, 1221, 1295, 1957, 2965, 3444, 3773, 3871, 3900, 3917, 5423, 5608, 6226, 6782, 9083, 11177, 11249, 11343, 13267, 15236, 16530, 17686, 18158, 19048, 19069, 19309, 21176, 23468, 29569, 31344, 32399, 3262...
[ 0.078125, 0.01171875, 0.115234375, 0.004150390625, 0.038330078125, 0.078125, 0.056884765625, 0.00244140625, 0.01611328125, 0.001708984375, 0.099609375, 0.006591796875, 0.046875, 0.0068359375, 0.1376953125, 0.0218505859375, 0.1865234375, 0.0732421875, 0.09033203125, 0.0703125, ...
080092e9-dfe5-578a-bd39-235aa8cace4c
2,871
0
Title: Reading a C/C++ data structure in C# from a byte array What would be the best way to fill a C# struct from a byte[] array where the data was from a C/C++ struct? The C struct would look something like this (my C is very rusty): typedef OldStuff { CHAR Name[8]; UInt32 User; CHAR Location[8]; UI...
450
579
[ ".net", "c#" ]
[ "c#", ".net", "data-structures", "marshalling" ]
{"accepted_answer_id":2887,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T21:19:03.147000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2018-08-30T14:44:24.823000+00:00","last_edit_date":"2016-02-07T01:06:32.437000+00...
[ 0.00409698486328125, 0.006649017333984375, -0.0263519287109375, 0.01068115234375, 0.00836944580078125, -0.0200653076171875, -0.0007343292236328125, 0.0070343017578125, 0.0232696533203125, 0.0037975311279296875, -0.0211334228515625, -0.018280029296875, 0.00872802734375, -0.046051025390625, ...
[ 10, 18, 23, 47, 53, 56, 64, 67, 75, 112, 133, 313, 390, 420, 441, 509, 611, 660, 667, 757, 903, 944, 1062, 1176, 1294, 1295, 1884, 2053, 2174, 2230, 2356, 2646, 2806, 2965, 3835, 3917, 4200, 4288, 4448, 4552, 4707, 4904, 6056, 646...
[ 0.055419921875, 0.050537109375, 0.0179443359375, 0.1318359375, 0.0927734375, 0.05322265625, 0.1494140625, 0.185546875, 0.0225830078125, 0.1591796875, 0.06982421875, 0.1474609375, 0.146484375, 0.04150390625, 0.056640625, 0.052001953125, 0.1025390625, 0.0654296875, 0.026611328125, ...
19010968-6998-59d3-85cc-d5bfbd66c481
2,872
0
Title: Possible to "spin off" several GUI threads? (Not halting the system at Application.Run) My Goal I would like to have a main processing thread (non GUI), and be able to spin off GUIs in their own background threads as needed, and having my main non GUI thread keep working. Put another way, I want my main non G...
685
786
[ ".net", "c#" ]
[ "c#", ".net", "winforms" ]
{"accepted_answer_id":2901,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T21:19:37.280000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2016-02-07T01:06:01.593000+00:00","last_edit_date":"2016-02-07T01:06:01.593000+00...
[ 0, 0.0308990478515625, -0.0197296142578125, -0.0219879150390625, 0.00885009765625, -0.0237579345703125, -0.0116424560546875, 0.005107879638671875, 0.021270751953125, 0.022216796875, -0.0295867919921875, 0.0031642913818359375, 0.0406494140625, 0.0031337738037109375, 0.0194854736328125, ...
[ 4, 5, 7, 10, 11, 12, 15, 16, 19, 23, 25, 28, 33, 39, 47, 53, 58, 70, 71, 73, 83, 87, 90, 98, 99, 100, 110, 111, 126, 132, 136, 138, 177, 184, 186, 194, 214, 221, 237, 247, 289, 294, 297, 304, 329, 351, 390, 442, 450, 5...
[ 0.011962890625, 0.01220703125, 0.07861328125, 0.011962890625, 0.011474609375, 0.00537109375, 0.01171875, 0.012451171875, 0.009765625, 0.058349609375, 0.010986328125, 0.01123046875, 0.02685546875, 0.01025390625, 0.0234375, 0.011474609375, 0.01123046875, 0.01171875, 0.01171875, 0...
8c66c9b2-940e-5d16-a6ea-8ecc771ce825
2,874
0
Title: How to render a control to look like ComboBox with Visual Styles enabled? I have a control that is modelled on a ComboBox. I want to render the control so that the control border looks like that of a standard Windows ComboBox. Specifically, I have followed the MSDN documentation and all the rendering of the con...
191
216
[ ".net", "c#" ]
[ "c#", ".net", "winforms" ]
{"accepted_answer_id":null,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T21:19:57.170000+00:00","has_accepted_answer":false,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2023-03-07T19:14:51.877000+00:00","last_edit_date":"2013-11-01T16:26:52.507000+0...
[ 0.01491546630859375, -0.005645751953125, 0.01052093505859375, -0.0222320556640625, 0.0297088623046875, -0.0096282958984375, -0.00826263427734375, 0.0308990478515625, 0.004428863525390625, 0.01425933837890625, 0.007190704345703125, 0.044464111328125, 0.03802490234375, 0.006595611572265625, ...
[ 7, 56, 214, 297, 450, 678, 837, 1052, 1884, 3288, 3444, 3514, 3773, 5426, 5570, 6226, 6713, 11249, 11341, 12830, 14858, 16265, 18507, 19929, 23894, 24129, 26785, 33342, 34735, 40030, 42459, 51671, 57571, 57845, 63920, 72295, 73372, 79442, 8...
[ 0.0068359375, 0.07177734375, 0.01318359375, 0.01025390625, 0.00634765625, 0.0250244140625, 0.1787109375, 0.03662109375, 0.14453125, 0.1376953125, 0.0311279296875, 0.03173828125, 0.0849609375, 0.0576171875, 0.1005859375, 0.2294921875, 0.1259765625, 0.052490234375, 0.08984375, 0....
9f7b259a-0adf-5d26-a1fd-b75ceb8112a2
2,987
0
Title: Bringing Window to the Front in C# using Win32 API I am writing an application that needs to bring window of an external app to the foreground, and not necessarily steal focus (there is a setting the user can toggle to steal/not steal focus). What is the best way to go about this using the win32 API? I have t...
106
114
[ "c#" ]
[ "c#", "winapi" ]
{"accepted_answer_id":2992,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T00:55:48.277000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2011-05-06T14:44:47.903000+00:00","last_edit_date":null,"question_id":2987,"score":47,"s...
[ 0.0211944580078125, -0.0035190582275390625, -0.01580810546875, 0.01084136962890625, -0.0034275054931640625, -0.024078369140625, -0.003398895263671875, -0.01401519775390625, 0.0218048095703125, -0.03424072265625, -0.019287109375, -0.0010852813720703125, 0.0274200439453125, -0.01323699951171...
[ 13, 23, 47, 70, 100, 111, 132, 214, 289, 313, 831, 903, 959, 1672, 2288, 2965, 3917, 4027, 4488, 4904, 6460, 10869, 11343, 14602, 16765, 17368, 17686, 18537, 19095, 19916, 19943, 27117, 32153, 32562, 35060, 37842, 38415, 38514, 38937, 436...
[ 0.11328125, 0.041748046875, 0.1572265625, 0.0810546875, 0.1025390625, 0.012939453125, 0.08642578125, 0.03173828125, 0.125, 0.0546875, 0.016357421875, 0.0255126953125, 0.037353515625, 0.0390625, 0.1220703125, 0.09765625, 0.03271484375, 0.14453125, 0.0830078125, 0.208984375, 0....
e8d6fcf8-c8c8-5959-b0d5-8d0339136860
3,017
0
Title: How can we generate getters and setters in Visual Studio? By "generate", I mean auto-generation of the code necessary for a particular selected (set of) variable(s). But any more explicit explication or comment on good practice is welcome.
53
58
[ "c#" ]
[ "c#", "visual-studio", "setter", "getter" ]
{"accepted_answer_id":3029,"answer_count":17,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T02:15:14.123000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2025-04-07T16:49:40.440000+00:00","last_edit_date":"2019-12-09T17:56:00.820000+00:00","...
[ -0.0079193115234375, -0.01178741455078125, 0.0101776123046875, 0.002246856689453125, 0.0260772705078125, -0.027740478515625, -0.0026798248291015625, 0.024169921875, 0.0091094970703125, 0.02215576171875, -0.032867431640625, 0.018463134765625, 0.0438232421875, -0.0189361572265625, 0.019653...
[ 7, 23, 67, 87, 136, 642, 831, 1363, 1809, 2046, 3311, 3509, 6868, 11249, 14149, 17311, 18151, 22968, 23962, 29459, 41361, 48281, 48962, 63559, 73372, 77336, 81907, 88685, 133291, 139392, 143726 ]
[ 0.0888671875, 0.03271484375, 0.1728515625, 0.006591796875, 0.14453125, 0.05029296875, 0.07080078125, 0.031982421875, 0.1875, 0.1708984375, 0.0252685546875, 0.07177734375, 0.005615234375, 0.07080078125, 0.03173828125, 0.036865234375, 0.16796875, 0.2080078125, 0.2041015625, 0.054...
a2fa0df3-afee-58e6-9089-1c4565ccd0b2
3,164
0
Title: Absolute path back to web-relative path If I have managed to locate and verify the existence of a file using Server.MapPath and I now want to send the user directly to that file, what is the fastest way to convert that absolute path back into a relative web path?
58
67
[ ".net", "c#" ]
[ "c#", "asp.net", ".net", "path", "mappath" ]
{"accepted_answer_id":3218,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T08:34:13.983000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2018-12-19T11:56:18.067000+00:00","last_edit_date":"2018-03-20T14:51:34.703000+00...
[ 0.009765625, -0.0221405029296875, 0.0179901123046875, -0.0019092559814453125, -0.0179901123046875, -0.00666046142578125, -0.0181121826171875, 0.024261474609375, -0.0159759521484375, 0.0015096664428710938, -0.0218963623046875, -0.00511932373046875, 0.008697509765625, -0.01171875, 0.025924...
[ 5, 10, 13, 47, 67, 493, 525, 683, 765, 1467, 2367, 3444, 3917, 3934, 4271, 4420, 4935, 5036, 10519, 11435, 17368, 22687, 25379, 25653, 35845, 38937, 40383, 48962, 60875, 64040, 89931, 96760, 101397, 105237, 116311, 145755, 166179 ]
[ 0.037353515625, 0.037109375, 0.064453125, 0.134765625, 0.005126953125, 0.10205078125, 0.08984375, 0.1123046875, 0.007080078125, 0.1396484375, 0.005126953125, 0.08544921875, 0.0693359375, 0.11328125, 0.10205078125, 0.17578125, 0.1318359375, 0.02392578125, 0.1982421875, 0.1630859...
519a29ff-d785-59d7-a965-2caabb7c2574
3,213
0
Title: Convert integers to written numbers Is there an efficient method of converting an integer into the written numbers, for example: string Written = IntegerToWritten(21); would return "Twenty One". Is there any way of doing this that doesn't involve a massive look-up table?
63
68
[ "c#" ]
[ "c#", "integer" ]
{"accepted_answer_id":3267,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T09:21:09.490000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2022-10-07T10:55:19.470000+00:00","last_edit_date":"2012-01-31T14:33:46.707000+00:00","...
[ 0.0185089111328125, -0.032562255859375, 0.0032787322998046875, -0.01311492919921875, 0.0125274658203125, -0.029388427734375, -0.01247406005859375, -0.005329132080078125, -0.0183868408203125, 0.004421234130859375, -0.0030002593994140625, 0.01024627685546875, 0.0263519287109375, -0.004802703...
[ 47, 53, 70, 111, 142, 214, 510, 618, 892, 1456, 1505, 1657, 2037, 2203, 2685, 2783, 2806, 3917, 3934, 6561, 6713, 7763, 11549, 20594, 23180, 26255, 27781, 30646, 44401, 48962, 55300, 59121, 69072, 74797, 79315, 93766, 96760, 101935, 128538 ...
[ 0.083984375, 0.08251953125, 0.015625, 0.0107421875, 0.033447265625, 0.07421875, 0.1259765625, 0.00439453125, 0.158203125, 0.0267333984375, 0.15234375, 0.05712890625, 0.0302734375, 0.001708984375, 0.044677734375, 0.119140625, 0.00537109375, 0.05224609375, 0.111328125, 0.1484375,...
5cef80fb-d6b7-570d-a1ec-663edc471c4c
3,234
0
Title: Displaying ad content from Respose.WriteFile()/ Response.ContentType How would one display any add content from a "dynamic" aspx page? Currently I am working on using the System.Web.HttpResponse "Page.Response" to write a file that is stored on a web server to a web request. This would allow people to hit a u...
199
238
[ "c#" ]
[ "c#" ]
{"accepted_answer_id":14496,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T09:52:36.603000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-12-27T06:26:45.553000+00:00","last_edit_date":"2008-09-01T08:15:49.240000+00:00","...
[ -0.023651123046875, -0.0182037353515625, 0.0010051727294921875, -0.004581451416015625, -0.00399017333984375, -0.0231781005859375, -0.03546142578125, 0.03594970703125, -0.017852783203125, 0.03759765625, -0.014007568359375, 0.004817962646484375, 0.0408935546875, -0.0145416259765625, 0.0010...
[ 13, 31, 277, 420, 425, 434, 606, 634, 1295, 1467, 2409, 2499, 2594, 2806, 3016, 3034, 3263, 3584, 4343, 4527, 5197, 5281, 5544, 5962, 6652, 6954, 9191, 9624, 10644, 10723, 10941, 11249, 11301, 11412, 11435, 11935, 12353, 15190, 17368, 184...
[ 0.09228515625, 0.0947265625, 0.0240478515625, 0.10302734375, 0.0311279296875, 0.051513671875, 0.201171875, 0.0869140625, 0.09033203125, 0.014892578125, 0.10107421875, 0.0029296875, 0.0078125, 0.0169677734375, 0.095703125, 0.08984375, 0.1513671875, 0.08203125, 0.07275390625, 0.0...
5a1f21b2-1e15-55ab-8620-28b6d31293a8
3,284
0
Title: Why can't I have abstract static methods in C#? I've been working with providers a fair bit lately, and I came across an interesting situation where I wanted to have an abstract class that had an abstract static method. I read a few posts on the topic, and it sort of made sense, but is there a nice clear explan...
73
79
[ ".net", "c#" ]
[ "c#", ".net", "language-design" ]
{"accepted_answer_id":3294,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T11:04:33.587000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2025-07-26T18:15:32.957000+00:00","last_edit_date":"2024-04-02T08:31:47.753000+0...
[ -0.00009006261825561523, 0.0160369873046875, 0.0161590576171875, -0.022705078125, 0.0311431884765625, -0.0039825439453125, -0.012481689453125, 0.025787353515625, 0.00766754150390625, -0.003520965576171875, -0.06085205078125, 0.0128326416015625, -0.006862640380859375, -0.0172271728515625, ...
[ 6, 18, 23, 70, 313, 678, 765, 831, 4904, 10422, 16648, 18507, 20697, 26267, 28451, 34735, 36663, 44084, 49041, 55300, 81450, 150624, 164789, 187136, 201939 ]
[ 0.007568359375, 0.06982421875, 0.043701171875, 0.005126953125, 0.04150390625, 0.00634765625, 0.02880859375, 0.0791015625, 0.1650390625, 0.0576171875, 0.03662109375, 0.1591796875, 0.034912109375, 0.0087890625, 0.00341796875, 0.0400390625, 0.02978515625, 0.0966796875, 0.04174804687...
e1e3e283-453a-50e1-8547-67c7ed35f354
3,315
0
Title: Can I have a method returning IEnumerator<T> and use it in a foreach loop? I need to set the height of every textbox on my form, some of which are nested within other controls. I thought I could do something like this: private static IEnumerator<TextBox> FindTextBoxes(Control rootControl) { foreach (Contr...
224
265
[ "c#" ]
[ "c#", "foreach", "ienumerable", "ienumerator" ]
{"accepted_answer_id":3316,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T12:17:31.320000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2015-10-22T03:07:56.643000+00:00","last_edit_date":"2015-10-22T03:07:56.643000+00:00","q...
[ 0.00799560546875, 0.003997802734375, 0.00788116455078125, -0.0108642578125, -0.003910064697265625, -0.04010009765625, -0.01384735107421875, -0.001834869384765625, 0.020416259765625, 0.0207672119140625, -0.0021038055419921875, 0.0027904510498046875, 0.017669677734375, 0.0012159347534179688,...
[ 23, 54, 56, 70, 87, 90, 100, 111, 132, 237, 304, 345, 618, 757, 765, 903, 933, 1176, 1884, 2174, 2499, 2606, 2685, 2886, 3173, 3501, 3789, 3871, 3917, 4171, 4527, 4597, 4966, 5423, 5809, 6226, 6863, 7986, 8473, 8512, 9969, 11180, 11...
[ 0.037109375, 0.013916015625, 0.138671875, 0.06298828125, 0.00439453125, 0.0537109375, 0.1025390625, 0.0234375, 0.0009765625, 0.041015625, 0.0791015625, 0.04052734375, 0.1396484375, 0.0771484375, 0.03271484375, 0.036865234375, 0.03369140625, 0.0927734375, 0.05615234375, 0.038574...
8ebed271-efde-5c2d-b60b-cdb77b299fdb
3,512
0
Title: Searching directories for tons of files? I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I start...
137
156
[ "c#" ]
[ "c#", "directory", "file-management" ]
{"accepted_answer_id":3552,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T14:57:16.597000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2012-08-10T06:34:13.830000+00:00","last_edit_date":"2012-08-10T06:34:13.830000+00:00","q...
[ -0.003116607666015625, -0.004077911376953125, -0.02386474609375, 0.008209228515625, 0.00007891654968261719, 0.01305389404296875, 0.0024967193603515625, 0.00579071044921875, 0.01276397705078125, 0.00933837890625, -0.015594482421875, -0.0001856088638305664, 0.043731689453125, 0.0021114349365...
[ 4, 5, 10, 17, 18, 32, 47, 53, 90, 98, 100, 111, 126, 136, 139, 214, 297, 360, 552, 621, 724, 765, 903, 1328, 1556, 1733, 1810, 1890, 2663, 2685, 2856, 2965, 3387, 3917, 3919, 4516, 4865, 5303, 5941, 8305, 8560, 8721, 9844, 10002, ...
[ 0.03515625, 0.0269775390625, 0.05419921875, 0.01025390625, 0.029541015625, 0.056396484375, 0.0712890625, 0.0869140625, 0.0654296875, 0.05810546875, 0.138671875, 0.1416015625, 0.1376953125, 0.0693359375, 0.1513671875, 0.123046875, 0.003173828125, 0.039306640625, 0.02197265625, 0...
075fda3b-5ea8-51e2-b7bd-5316d10d5807
3,713
0
Title: Call ASP.NET function from JavaScript I'm writing a web page in ASP.NET. I have some JavaScript code, and I have a submit button with a click event. Is it possible to call a method I created in ASP with JavaScript's click event?
56
58
[ "c#", "javascript" ]
[ "javascript", "c#", "asp.net", "onclick" ]
{"accepted_answer_id":3777,"answer_count":20,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T17:16:36.630000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","javascript"],"last_activity_date":"2023-09-15T16:02:09.280000+00:00","last_edit_date":"2023-09-15T16:02:09.28...
[ 0.007965087890625, -0.000579833984375, -0.004161834716796875, -0.0223541259765625, 0.0018949508666992188, -0.036865234375, -0.0154571533203125, 0.0179595947265625, -0.024139404296875, 0.037567138671875, -0.0154571533203125, -0.0165252685546875, 0.011474609375, -0.010284423828125, 0.00880...
[ 4, 5, 7, 23, 47, 87, 442, 678, 765, 1295, 1467, 2071, 3060, 7722, 9191, 11782, 17777, 17925, 18151, 18158, 19732, 26265, 32354, 32562, 48962, 55300, 75935, 77679, 137447, 147153 ]
[ 0.00439453125, 0.0380859375, 0.005126953125, 0.0546875, 0.015869140625, 0.00732421875, 0.0191650390625, 0.09033203125, 0.014892578125, 0.1337890625, 0.04296875, 0.046142578125, 0.00341796875, 0.1220703125, 0.052001953125, 0.1640625, 0.1806640625, 0.25, 0.1240234375, 0.227539062...
dcb86dbd-1a9d-5e74-8fa1-5682c9f62a86
3,725
0
Title: How to create a tree-view preferences dialog type of interface in C#? I'm writing an application that is basically just a preferences dialog, much like the tree-view preferences dialog that Visual Studio itself uses. The function of the application is simply a pass-through for data from a serial device to a fil...
343
380
[ "c#" ]
[ "c#", "user-interface" ]
{"accepted_answer_id":3776,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T17:22:27.350000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2016-01-17T12:49:42.543000+00:00","last_edit_date":"2013-12-28T06:19:48.327000+00:00","q...
[ 0.025390625, 0.01074981689453125, 0.0139923095703125, -0.01422882080078125, -0.0141143798828125, -0.00756072998046875, 0.00885772705078125, 0.01027679443359375, 0.0328369140625, 0.01210784912109375, -0.0168914794921875, 0.00475311279296875, 0.0261077880859375, -0.0023174285888671875, 0.0...
[ 7, 9, 23, 47, 54, 110, 112, 313, 587, 756, 1660, 2053, 2965, 3173, 3917, 4027, 4173, 4331, 4488, 4527, 4904, 5201, 5915, 5941, 6183, 6226, 6238, 7108, 8108, 10422, 10644, 11249, 11435, 12638, 12912, 19069, 19095, 21176, 22751, 22968, 23...
[ 0.07275390625, 0.052734375, 0.000244140625, 0.056640625, 0.04443359375, 0.1015625, 0.03955078125, 0.046875, 0.08984375, 0.0009765625, 0.006591796875, 0.0693359375, 0.083984375, 0.1162109375, 0.00927734375, 0.15625, 0.02978515625, 0.1650390625, 0.0673828125, 0.0303955078125, 0...
5b9e04aa-6674-5ccb-a6bf-bf0bcdbdbd33
3,903
0
Title: Is this a good way to determine OS Architecture? Since the WMI class Win32_OperatingSystem only includes OSArchitecture in Windows Vista, I quickly wrote up a method using the registry to try and determine whether or not the current system is a 32 or 64bit system. private Boolean is64BitOperatingSystem() { ...
218
260
[ "c#" ]
[ "c#", "windows", "registry" ]
{"accepted_answer_id":3911,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T19:41:59.813000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2016-02-07T17:39:31.450000+00:00","last_edit_date":"2016-02-07T17:39:31.450000+00:00","q...
[ -0.01702880859375, -0.018798828125, 0.005023956298828125, -0.01507568359375, 0.01288604736328125, -0.0027484893798828125, -0.0258941650390625, 0.01525115966796875, 0.00353240966796875, -0.0221099853515625, -0.052276611328125, 0.037841796875, 0.032623291015625, 0.00821685791015625, 0.0312...
[ 10, 14, 23, 42, 47, 53, 70, 83, 90, 126, 217, 425, 441, 474, 571, 601, 686, 707, 724, 748, 856, 903, 959, 1884, 1900, 1916, 2060, 2071, 2789, 3137, 3408, 3773, 3917, 4000, 4127, 4589, 4613, 4734, 5045, 5299, 5426, 5570, 6460, 6644...
[ 0.0556640625, 0.134765625, 0.0126953125, 0.019775390625, 0.10009765625, 0.1533203125, 0.0155029296875, 0.0986328125, 0.06884765625, 0.015625, 0.1416015625, 0.01123046875, 0.048828125, 0.048095703125, 0.1484375, 0.068359375, 0.119140625, 0.1240234375, 0.012451171875, 0.013183593...
a350a98b-b4d3-5aa0-923c-37aa304f5b5e
3,927
0
Title: What Are Some Good .NET Profilers? What profilers have you used when working with .net programs, and which would you particularly recommend?
33
35
[ ".net", "c#" ]
[ "c#", ".net", "profiling", "profiler" ]
{"accepted_answer_id":100490,"answer_count":30,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T20:14:57.173000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2012-11-13T13:51:26.783000+00:00","last_edit_date":"2011-12-09T17:53:25.813000...
[ 0.01934814453125, -0.01055145263671875, -0.0247344970703125, 0.0006413459777832031, 0.025909423828125, -0.0093231201171875, -0.0247344970703125, -0.00372314453125, 0.017822265625, -0.0128936767578125, -0.05511474609375, 0.00574493408203125, 0.033294677734375, 0.003780364990234375, 0.0328...
[ 4, 5, 7, 398, 678, 765, 1179, 1314, 2806, 4865, 11814, 15901, 17777, 18621, 20697, 31384, 48962, 58848, 67330, 103391, 105609, 106480 ]
[ 0.06494140625, 0.06640625, 0.12890625, 0.01611328125, 0.012939453125, 0.06640625, 0.193359375, 0.1962890625, 0.001953125, 0.01611328125, 0.08251953125, 0.030517578125, 0.2216796875, 0.1103515625, 0.076171875, 0.048828125, 0.02099609375, 0.27734375, 0.111328125, 0.099609375, 0...
a8768c03-15e7-5b55-87b1-38cf6c8195ad
4,157
0
Title: ConfigurationManager.AppSettings Performance Concerns I plan to be storing all my config settings in my application's app.config section (using the ConfigurationManager.AppSettings class). As the user changes settings using the app's UI (clicking checkboxes, choosing radio buttons, etc.), I plan to be writing t...
483
535
[ ".net", "c#" ]
[ "c#", ".net", "performance", "configuration", "properties" ]
{"accepted_answer_id":4220,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T00:12:55.663000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2022-07-21T14:04:03.680000+00:00","last_edit_date":"2017-12-22T10:12:07.717000+00...
[ 0.004970550537109375, 0.00856781005859375, -0.027557373046875, 0.004940032958984375, 0.003025054931640625, 0.0010404586791992188, -0.0119781494140625, 0.030914306640625, 0.024078369140625, -0.002635955810546875, -0.039520263671875, -0.0180816650390625, 0.01953125, -0.0154571533203125, 0....
[ 5, 23, 42, 100, 214, 345, 377, 493, 645, 756, 831, 903, 959, 1221, 1467, 1528, 1657, 1774, 1810, 1829, 2053, 2320, 2773, 2878, 3082, 3293, 3773, 3871, 3917, 4027, 4127, 4271, 4283, 4343, 4734, 5526, 5659, 5977, 6528, 6713, 7108, 9433,...
[ 0.022216796875, 0.006591796875, 0.018310546875, 0.07177734375, 0.035400390625, 0.041259765625, 0.051513671875, 0.028076171875, 0.024169921875, 0.0380859375, 0.03125, 0.02294921875, 0.041748046875, 0.004638671875, 0.01025390625, 0.04736328125, 0.03466796875, 0.08984375, 0.02209472...
70528bf6-e5ff-5e4a-a833-24c19b740eed
4,221
0
Title: LinqDataSource - Can you limit the amount of records returned? I'd like to use a LinqDataSource control on a page and limit the amount of records returned. I know if I use code behind I could do something like this: IEnumerable<int> values = Enumerable.Range(0, 10); IEnumerable<int> take3 = values.Take(3); ...
154
177
[ "c#" ]
[ "c#", "asp.net", "database", "linq", "linq-to-sql" ]
{"accepted_answer_id":null,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T00:45:51.980000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-12-27T08:59:01.210000+00:00","last_edit_date":"2011-10-21T16:59:29.527000+00:00","...
[ 0.0158843994140625, -0.02532958984375, 0.007648468017578125, -0.026885986328125, 0.0018301010131835938, 0.0030460357666015625, -0.01708984375, 0.0163726806640625, 0.003032684326171875, 0.0192413330078125, 0.00043511390686035156, 0.0161285400390625, 0.0175628662109375, 0.01171112060546875, ...
[ 8, 56, 71, 111, 148, 209, 316, 339, 363, 398, 959, 1884, 2389, 2606, 2886, 4171, 4288, 4527, 4734, 5646, 5809, 6226, 7722, 9191, 14012, 14821, 17475, 18151, 22691, 29518, 30646, 31945, 32036, 41170, 44982, 48962, 50155, 50717, 51459, 5165...
[ 0.0673828125, 0.06689453125, 0.055908203125, 0.010498046875, 0.0087890625, 0.1025390625, 0.1162109375, 0.107421875, 0.1201171875, 0.0029296875, 0.05712890625, 0.05615234375, 0.0361328125, 0.109375, 0.0908203125, 0.09375, 0.087890625, 0.0771484375, 0.00146484375, 0.1318359375, ...
dc45619f-22ce-5759-b3e6-5b201569c472
4,227
0
Title: Accessing a Dictionary.Keys Key through a numeric index I'm using a Dictionary<string, int> where the int is a count of the key. Now, I need to access the last-inserted Key inside the Dictionary, but I do not know the name of it. The obvious attempt: int LastCount = mydict[mydict.keys[mydict.keys.Count]]; ...
161
187
[ ".net", "c#" ]
[ "c#", ".net", "dictionary" ]
{"accepted_answer_id":4735712,"answer_count":15,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T00:51:21.720000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2020-01-03T07:03:49.040000+00:00","last_edit_date":"2015-04-07T12:16:44.32300...
[ 0.0170135498046875, 0.017364501953125, -0.0040435791015625, 0.00047397613525390625, 0.01088714599609375, 0.003509521484375, -0.017730712890625, 0.01255035400390625, 0.01273345947265625, 0.005176544189453125, -0.007495880126953125, 0.01367950439453125, -0.0123748779296875, -0.00675201416015...
[ 5, 7, 9, 10, 18, 23, 47, 56, 70, 73, 83, 98, 111, 214, 238, 268, 297, 378, 759, 959, 1176, 1284, 2594, 3714, 3871, 4343, 4488, 4527, 4568, 4711, 6512, 8305, 10002, 15700, 17203, 17368, 17569, 18190, 18507, 19770, 21373, 21672, 22799...
[ 0.0732421875, 0.087890625, 0.018310546875, 0.01806640625, 0.1259765625, 0.1142578125, 0.035888671875, 0.16015625, 0.02734375, 0.05615234375, 0.001953125, 0.052001953125, 0.019775390625, 0.025390625, 0.013427734375, 0.0693359375, 0.0400390625, 0.0654296875, 0.10546875, 0.0747070...
2954f9fb-6384-5cb6-8f59-9c7e66a09ab1
4,234
0
Title: What to use for Messaging with C# So my company stores alot of data in a foxpro database and trying to get around the performance hit of touching it directly I was thinking of messaging anything that can be done asynchronously for a snappier user experience. I started looking at ActiveMQ but don't know how well...
233
261
[ "c#" ]
[ "c#", "messaging" ]
{"accepted_answer_id":4260,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":"2023-10-04T15:51:49.820000+00:00","creation_date":"2008-08-07T00:56:41.880000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#"],"last_activity_date":"2023-10-03T21:13:21.550000+00:00","last_edit_date":"2023-10...
[ -0.0031948089599609375, -0.032257080078125, -0.01812744140625, -0.003326416015625, 0.0262603759765625, -0.02978515625, 0.002162933349609375, 0.03790283203125, 0.0095367431640625, 0.01107025146484375, -0.047332763671875, -0.0013761520385742188, 0.02484130859375, 0.0261383056640625, 0.0329...
[ 47, 91, 99, 100, 111, 144, 209, 313, 594, 678, 818, 831, 903, 1221, 1467, 2046, 2053, 2409, 2737, 3444, 3454, 3664, 3714, 3934, 4343, 4527, 4717, 4865, 4904, 5155, 5299, 5351, 5369, 5423, 5962, 6650, 7730, 8562, 9966, 10332, 10932, 10...
[ 0.018798828125, 0.0029296875, 0.011474609375, 0.031494140625, 0.008544921875, 0.005126953125, 0.043212890625, 0.06201171875, 0.07763671875, 0.12109375, 0.07177734375, 0.02587890625, 0.00732421875, 0.0126953125, 0.06591796875, 0.005615234375, 0.1044921875, 0.099609375, 0.215820312...
d4ea85f6-b6af-57cb-a5da-f649af54c605
4,335
0
Title: High availability Is there anyway to configure a WCF service with a failover endpoint if the primary endpoint dies? Kind of like being able to specify a failover server in a SQL cluster. Specifically I am using the TCP/IP binding for speed, but on the rare occurrence that the machine is not available I would ...
100
115
[ ".net", "c#" ]
[ "c#", ".net", "wcf", "soa" ]
{"accepted_answer_id":13097,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T02:50:13.320000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2015-12-17T11:44:47.320000+00:00","last_edit_date":"2015-12-17T11:44:47.320000+0...
[ -0.005741119384765625, 0.00328826904296875, -0.00258636474609375, 0.01219940185546875, 0.0185394287109375, 0.0028247833251953125, -0.013153076171875, 0.013458251953125, 0.0079498291015625, -0.01285552978515625, -0.019256591796875, 0.013153076171875, 0.03778076171875, 0.03253173828125, 0....
[ 10, 47, 64, 70, 83, 100, 185, 388, 450, 456, 678, 919, 959, 1884, 1916, 2174, 2685, 3564, 4516, 5465, 10723, 10931, 12601, 14179, 14792, 17368, 17854, 18151, 18929, 19048, 19694, 19882, 25820, 33022, 34831, 35782, 36279, 37808, 38352, 384...
[ 0.02001953125, 0.05859375, 0.001708984375, 0.011474609375, 0.0146484375, 0.037841796875, 0.1162109375, 0.021728515625, 0.007568359375, 0.1181640625, 0.0751953125, 0.2080078125, 0.0751953125, 0.0791015625, 0.04541015625, 0.0771484375, 0.056884765625, 0.12109375, 0.1748046875, 0....
16bcd49e-45f6-5a01-9627-b3e868cfe0db
4,363
0
Title: What is the best way to do unit testing for ASP.NET 2.0 web pages? Any suggestions? Using visual studio in C#. Are there any specific tools to use or methods to approach this? Update: Sorry, I should have been a little more specific. I am using ASP.Net 2.0 and was looking more for a tool like jUnit for Ja...
141
144
[ "c#" ]
[ "c#", "asp.net", "visual-studio", "unit-testing" ]
{"accepted_answer_id":4386,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":"2012-07-14T14:23:36.647000+00:00","creation_date":"2008-08-07T03:23:45.983000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#"],"last_activity_date":"2019-12-27T09:02:08.217000+00:00","last_edit_date":"2020-06...
[ 0.0010290145874023438, -0.006519317626953125, 0.001434326171875, -0.02294921875, 0.0027027130126953125, -0.01471710205078125, -0.017425537109375, 0.01357269287109375, -0.01910400390625, 0.01561737060546875, -0.032196044921875, -0.0182647705078125, 0.01171112060546875, 0.044921875, 0.0180...
[ 5, 18, 23, 47, 54, 100, 136, 284, 313, 345, 903, 1179, 1250, 1286, 1467, 1647, 1884, 2965, 3917, 4527, 4552, 4865, 4904, 6713, 6773, 7008, 12275, 14947, 16487, 16655, 17368, 17777, 18057, 21176, 22968, 24447, 25072, 26859, 29458, 33342, ...
[ 0.006103515625, 0.1484375, 0.045654296875, 0.03955078125, 0.0810546875, 0.0625, 0.008544921875, 0.0240478515625, 0.0167236328125, 0.037109375, 0.008544921875, 0.1044921875, 0.169921875, 0.045166015625, 0.06396484375, 0.0810546875, 0.020263671875, 0.1162109375, 0.06640625, 0.075...
2a6993e6-55dc-5c95-a689-9bd2bbb3d979
4,432
0
Title: CSV string handling Typical way of creating a CSV string (pseudocode): Create a CSV container object (like a StringBuilder in C#). Loop through the strings you want to add appending a comma after each one. After the loop, remove that last superfluous comma. Code sample: public string ReturnAsCSV(Con...
203
239
[ "c#" ]
[ "c#", "csv" ]
{"accepted_answer_id":4441,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T05:49:04.253000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2018-09-11T07:44:49.323000+00:00","last_edit_date":"2016-02-07T14:30:15.983000+00:00","...
[ 0.006313323974609375, -0.01009368896484375, 0.0104522705078125, -0.003490447998046875, 0.007282257080078125, -0.034088134765625, -0.027313232421875, 0.0076446533203125, 0.020904541015625, 0.0292510986328125, -0.01027679443359375, 0.022125244140625, -0.007251739501953125, -0.007614135742187...
[ 10, 56, 66, 214, 238, 275, 313, 432, 449, 450, 501, 856, 997, 1286, 1601, 1747, 1884, 2174, 3444, 3835, 3917, 4568, 4879, 4904, 5062, 5470, 6496, 6528, 7103, 7763, 8305, 9433, 11030, 11547, 12319, 12638, 12765, 15190, 17678, 18026, 1928...
[ 0.010009765625, 0.1240234375, 0.03662109375, 0.05517578125, 0.0478515625, 0.0791015625, 0.119140625, 0.0654296875, 0.0126953125, 0.0281982421875, 0.0201416015625, 0.2099609375, 0.0712890625, 0.080078125, 0.029541015625, 0.083984375, 0.1298828125, 0.0228271484375, 0.0673828125, ...
7a1ddb52-5c00-5620-ab5f-c996403445c4
4,556
0
Title: DataTable Loop Performance Comparison Which of the following has the best performance? I have seen method two implemented in JavaScript with huge performance gains, however, I was unable to measure any gain in C# and was wondering if the compiler already does method 2 even when written like method 1. The th...
154
163
[ "c#" ]
[ "c#", "performance", "loops" ]
{"accepted_answer_id":4562,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T10:01:04.823000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2013-10-17T19:44:11.380000+00:00","last_edit_date":"2013-10-17T19:44:11.380000+00:00","q...
[ 0.007007598876953125, -0.005367279052734375, -0.02301025390625, 0.004772186279296875, 0.0242156982421875, -0.032440185546875, -0.009124755859375, -0.0121612548828125, 0.00608062744140625, 0.011810302734375, -0.0190887451171875, 0.01377105712890625, 0.00611114501953125, -0.02349853515625, ...
[ 17, 18, 70, 100, 106, 116, 313, 501, 615, 618, 720, 757, 984, 1556, 1884, 2203, 2886, 2965, 4288, 4426, 4904, 6626, 8781, 9969, 11809, 11907, 12724, 14602, 17203, 17925, 18151, 19725, 21647, 21771, 23718, 25632, 29479, 34759, 37223, 40514...
[ 0.07861328125, 0.02294921875, 0.03515625, 0.0634765625, 0.1298828125, 0.205078125, 0.006591796875, 0.042724609375, 0.07666015625, 0.13671875, 0.1201171875, 0.103515625, 0.025146484375, 0.055908203125, 0.0250244140625, 0.0150146484375, 0.18359375, 0.1396484375, 0.0888671875, 0.0...
528a917a-1a05-5ced-be86-6635c5b81115
4,610
0
Title: How can I create Prototype Methods (like JavaScript) in C#.Net? How is it possible to make prototype methods in C#.Net? In JavaScript, I can do the following to create a trim method for the string object: String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } How can I go about d...
87
105
[ ".net", "c#" ]
[ "c#", ".net" ]
{"accepted_answer_id":4615,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T12:00:50.540000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2014-12-16T18:35:32.947000+00:00","last_edit_date":"2014-12-16T18:35:32.947000+00...
[ 0.0213775634765625, 0.0264434814453125, 0.004547119140625, 0.0049591064453125, 0.0203094482421875, -0.04345703125, -0.0301055908203125, 0.01605224609375, -0.004634857177734375, 0.006610870361328125, -0.0282135009765625, -0.009033203125, 0.00909423828125, -0.0192413330078125, 0.0117492675...
[ 5, 7, 13, 23, 31, 39, 54, 64, 87, 107, 177, 214, 313, 360, 831, 903, 1328, 1672, 2203, 3249, 3996, 4369, 4904, 5062, 7722, 8353, 11249, 17925, 18606, 20594, 23351, 23935, 24447, 25632, 28282, 30646, 32354, 36746, 41872, 48962, 50986, ...
[ 0.029296875, 0.0240478515625, 0.1484375, 0.044921875, 0.16015625, 0.154296875, 0.007080078125, 0.015380859375, 0.0419921875, 0.043701171875, 0.087890625, 0.050537109375, 0.034912109375, 0.029296875, 0.057373046875, 0.1005859375, 0.080078125, 0.014404296875, 0.016845703125, 0.08...
5da2687c-3dbf-56b5-8ebf-e1eb5bdfa63a
4,612
0
Title: CSharpCodeProvider Compilation Performance Is CompileAssemblyFromDom faster than CompileAssemblyFromSource? It should be as it presumably bypasses the compiler front-end.
37
51
[ "c#" ]
[ "c#", "performance" ]
{"accepted_answer_id":29283,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T12:01:14.503000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2024-08-26T12:00:50.150000+00:00","last_edit_date":"2024-08-26T12:00:50.150000+00:00","...
[ -0.00832366943359375, -0.008148193359375, -0.006671905517578125, 0.00472259521484375, 0.040618896484375, -0.0204315185546875, 0.007465362548828125, 0.0218353271484375, 0.020538330078125, 0.0022869110107421875, -0.040863037109375, -0.0174713134765625, 0.01511383056640625, -0.022079467773437...
[ 14, 39, 56, 90, 186, 254, 284, 390, 1340, 2071, 3467, 3501, 3611, 4271, 5608, 9969, 12912, 13409, 15612, 25841, 34759, 38526, 44136, 57860, 62160, 89845, 94030, 106098, 114211, 168407, 177997, 211235 ]
[ 0.0888671875, 0.00146484375, 0.1171875, 0.033447265625, 0.0703125, 0.09765625, 0.0172119140625, 0.076171875, 0.1669921875, 0.0279541015625, 0.1318359375, 0.0220947265625, 0.13671875, 0.1708984375, 0.1025390625, 0.138671875, 0.0927734375, 0.142578125, 0.1611328125, 0.03686523437...
aba37ef5-e8ef-5553-8b67-c927edd02f86
4,629
0
Title: How can I evaluate C# code dynamically? I can do an eval("something()"); to execute the code dynamically in JavaScript. Is there a way for me to do the same thing in C#? An example of what I am trying to do is: I have an integer variable (say i) and I have multiple properties by the names: "Property1", "Prope...
130
146
[ "c#" ]
[ "c#", "reflection", "properties", "c#-2.0" ]
{"accepted_answer_id":4637,"answer_count":16,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T12:26:46.917000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2025-06-10T11:12:22.403000+00:00","last_edit_date":"2018-04-10T19:39:40.300000+00:00","...
[ 0.018463134765625, 0.019287109375, -0.018585205078125, -0.0028285980224609375, 0.0223846435546875, -0.0153656005859375, 0.005062103271484375, 0.037384033203125, -0.0055084228515625, 0.00952911376953125, -0.047149658203125, 0.0019054412841796875, 0.004970550537109375, -0.035491943359375, ...
[ 13, 14, 17, 23, 28, 54, 87, 98, 132, 142, 163, 313, 363, 678, 831, 892, 939, 1264, 1405, 1505, 3060, 3444, 3917, 4904, 5701, 6183, 8781, 11249, 17925, 18151, 25958, 27781, 31577, 34292, 41018, 43452, 48716, 48962, 51339, 57266, 64113, ...
[ 0.09423828125, 0.1103515625, 0.1044921875, 0.0546875, 0.1044921875, 0.06298828125, 0.01025390625, 0.07275390625, 0.036376953125, 0.0157470703125, 0.001708984375, 0.0771484375, 0.0634765625, 0.072265625, 0.047119140625, 0.08740234375, 0.0208740234375, 0.06982421875, 0.2490234375, ...
84701213-b283-54ca-b974-6c619c4f46a0
4,664
0
Title: Should the folders in a solution match the namespace? Should the folders in a solution match the namespace? In one of my teams projects, we have a class library that has many sub-folders in the project. Project Name and Namespace: MyCompany.Project.Section. Within this project, there are several folders t...
174
212
[ ".net", "c#" ]
[ "c#", ".net", "namespaces" ]
{"accepted_answer_id":4672,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":"2024-11-20T14:38:45.430000+00:00","creation_date":"2008-08-07T12:53:19.217000+00:00","has_accepted_answer":true,"is_closed":true,"languages":[".net","c#"],"last_activity_date":"2024-11-13T12:37:11.097000+00:00","last_edit_date":"...
[ 0.006465911865234375, -0.005077362060546875, -0.010040283203125, 0.009033203125, 0.024322509765625, 0.01116180419921875, 0.0068511962890625, 0.026458740234375, -0.0036029815673828125, -0.0196075439453125, -0.0255126953125, -0.0005645751953125, 0.033538818359375, 0.01393890380859375, 0.02...
[ 7, 23, 70, 100, 294, 360, 365, 820, 979, 1294, 1314, 1614, 2062, 2646, 4848, 4865, 5570, 5941, 6157, 6261, 6620, 7228, 10846, 13452, 14249, 14858, 17664, 18507, 26455, 27331, 29806, 30077, 31852, 35773, 40059, 40368, 42822, 45646, 46471, ...
[ 0.10546875, 0.0361328125, 0.06591796875, 0.0262451171875, 0.080078125, 0.0206298828125, 0.0157470703125, 0.07080078125, 0.06787109375, 0.03955078125, 0.05517578125, 0.134765625, 0.0673828125, 0.064453125, 0.058349609375, 0.00537109375, 0.2099609375, 0.040283203125, 0.115234375, ...
6f071a5a-71ec-5cf2-a77d-f69d45ec7c17
4,816
0
Title: How do you resolve a domain name to an IP address with .NET/C#? How do you resolve a domain name to an IP address with .NET/C#?
38
42
[ ".net", "c#" ]
[ "c#", ".net", "dns", "reverse-dns" ]
{"accepted_answer_id":4821,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T14:56:59.797000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2019-12-27T07:06:30.937000+00:00","last_edit_date":"2012-07-18T17:17:40.483000+00...
[ 0.0218963623046875, -0.0217742919921875, -0.0287628173828125, -0.0221405029296875, -0.0006508827209472656, 0.0044403076171875, -0.0155029296875, 0.00030875205993652344, -0.01012420654296875, -0.01207733154296875, -0.05682373046875, -0.000736236572265625, 0.040252685546875, -0.0221405029296...
[ 5, 6, 12, 32, 47, 54, 64, 398, 441, 678, 4904, 8021, 9351, 11249, 17777, 29823, 48962, 77758, 103608 ]
[ 0.08642578125, 0.042236328125, 0.0157470703125, 0.000732421875, 0.1796875, 0.06103515625, 0.0810546875, 0.0184326171875, 0.051513671875, 0.1025390625, 0.2099609375, 0.19140625, 0.15625, 0.11328125, 0.236328125, 0.1357421875, 0.08984375, 0.177734375, 0.224609375 ]
146dc5ad-f7d2-523c-8258-721cf066c70b
4,849
0
Title: Drag and Drop to a hosted Browser control I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server. I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it...
232
250
[ "c#" ]
[ "c#", "browser" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T15:22:40.167000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#"],"last_activity_date":"2011-09-09T09:51:48.833000+00:00","last_edit_date":"2011-09-09T09:51:48.833000+00:00","...
[ 0.0231781005859375, 0.0034637451171875, 0.029510498046875, -0.0092620849609375, -0.032501220703125, -0.0133819580078125, -0.0186309814453125, 0.01277923583984375, 0.005016326904296875, 0.006183624267578125, 0.018157958984375, 0.0011053085327148438, 0.0063018798828125, 0.00070953369140625, ...
[ 7, 47, 110, 112, 116, 136, 148, 237, 254, 271, 297, 333, 425, 603, 1179, 1295, 1467, 1528, 1884, 2053, 2182, 2685, 2806, 2831, 3173, 3229, 3444, 4027, 4488, 4734, 6226, 6652, 9191, 10723, 11193, 11338, 11782, 13482, 17686, 17777, 19048,...
[ 0.119140625, 0.115234375, 0.1416015625, 0.111328125, 0.10400390625, 0.1640625, 0.06787109375, 0.0142822265625, 0.06982421875, 0.037109375, 0.0859375, 0.05419921875, 0.1376953125, 0.099609375, 0.08349609375, 0.07568359375, 0.011962890625, 0.1142578125, 0.09375, 0.1142578125, 0...
c42e54e2-6956-5dfd-abe2-2e586fbd3bb3
4,850
0
Title: C# and Arrow Keys I am new to C# and am doing some work in an existing application. I have a DirectX viewport that has components in it that I want to be able to position using arrow keys. Currently I am overriding ProcessCmdKey and catching arrow input and send an OnKeyPress event. This works, but I want to ...
124
141
[ "c#" ]
[ "c#", "user-interface", "directx" ]
{"accepted_answer_id":5026,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T15:23:28.883000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2014-02-24T06:25:15.813000+00:00","last_edit_date":"2014-02-24T06:25:15.813000+00:00","q...
[ 0.009979248046875, -0.01467132568359375, -0.0009946823120117188, -0.0167388916015625, -0.005016326904296875, -0.04443359375, 0.00002193450927734375, 0.0177001953125, 0.000044286251068115234, 0.00955963134765625, -0.018524169921875, 0.03778076171875, 0.0223236083984375, 0.000634670257568359...
[ 6, 7, 47, 110, 136, 313, 416, 618, 645, 1172, 1328, 1542, 2161, 3444, 3525, 4488, 4527, 4904, 6982, 7842, 15555, 17368, 19048, 19069, 19732, 21455, 22799, 24234, 25217, 25379, 25647, 26824, 30121, 33662, 38415, 42666, 43240, 47353, 54686, ...
[ 0.003662109375, 0.0361328125, 0.0859375, 0.0947265625, 0.05419921875, 0.036376953125, 0.10546875, 0.0732421875, 0.0201416015625, 0.06689453125, 0.087890625, 0.09033203125, 0.1279296875, 0.0693359375, 0.087890625, 0.03173828125, 0.0966796875, 0.1982421875, 0.1240234375, 0.087890...
8299af9f-5257-510d-adfa-e78bce1e7c87
4,913
0
Title: How to make a button appear as if it is pressed? Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. ToolStripButton has the Checked property, but the regular Button does not.
66
73
[ ".net", "c#" ]
[ "c#", ".net", "winforms", "user-interface", "button" ]
{"accepted_answer_id":4924,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T16:21:59.280000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2017-12-22T10:09:05.793000+00:00","last_edit_date":"2017-12-22T10:09:05.793000+00...
[ 0.0126190185546875, -0.005680084228515625, 0.0110626220703125, 0.0184173583984375, 0.0113067626953125, -0.002048492431640625, -0.0111846923828125, 0.031341552734375, -0.0029010772705078125, 0.01447296142578125, -0.0150146484375, 0.03253173828125, 0.048553466796875, -0.006191253662109375, ...
[ 7, 47, 71, 83, 98, 116, 237, 297, 601, 1507, 2174, 3249, 3642, 4904, 6713, 11249, 11856, 16396, 16713, 20324, 24447, 30501, 38679, 44160, 46334, 48962, 57266, 59623, 77679, 82212, 92285, 101089, 108975, 133196, 144037 ]
[ 0.0302734375, 0.0196533203125, 0.138671875, 0.052978515625, 0.0810546875, 0.01318359375, 0.1220703125, 0.1435546875, 0.0517578125, 0.0830078125, 0.1162109375, 0.091796875, 0.0140380859375, 0.0859375, 0.1767578125, 0.057373046875, 0.2041015625, 0.1845703125, 0.146484375, 0.12890...
3e8fec20-1e1b-5624-b3a7-3d3df51342b4
4,930
0
Title: How to reference to multiple version assembly I'm developing a Sharepoint application and use .NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification to the AJAX library to make it behave like it normally should. The ...
285
298
[ ".net", "c#" ]
[ "c#", ".net", "sharepoint", "assemblies" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T16:35:33.060000+00:00","has_accepted_answer":false,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2020-02-24T11:02:21.587000+00:00","last_edit_date":"2020-02-24T11:02:21.587000+0...
[ 0.01509857177734375, -0.0238037109375, 0.0073699951171875, -0.00061798095703125, 0.01166534423828125, 0.016693115234375, -0.01421356201171875, 0.0252227783203125, 0.00864410400390625, 0.00618743896484375, -0.03411865234375, 0.0017614364624023438, 0.0113677978515625, 0.0191802978515625, 0...
[ 10, 47, 71, 110, 145, 425, 527, 569, 1098, 1181, 1294, 1632, 2394, 2691, 2967, 3642, 4358, 4527, 4677, 4734, 5665, 5701, 7175, 7190, 7709, 7909, 9185, 9191, 9351, 9486, 9488, 11249, 11389, 11675, 12921, 13736, 15005, 15012, 15612, 16934, ...
[ 0.019775390625, 0.0732421875, 0.0078125, 0.03173828125, 0.056640625, 0.041259765625, 0.0184326171875, 0.0361328125, 0.076171875, 0.142578125, 0.013916015625, 0.09912109375, 0.1728515625, 0.1083984375, 0.0269775390625, 0.0194091796875, 0.0179443359375, 0.134765625, 0.0810546875, ...
bcd79528-fb3a-5d4e-b787-ae29fa25c57b
5,179
0
Title: How Do I Post and then redirect to an external URL from ASP.Net? ASP.NET server-side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to post to that page for some reason (for authentication, for instance) a pain. An HttpWebRequest works gre...
137
152
[ "c#", "javascript" ]
[ "javascript", "c#", "asp.net", "forms", "postback" ]
{"accepted_answer_id":5219,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T19:13:04.583000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","javascript"],"last_activity_date":"2022-07-21T14:04:13.767000+00:00","last_edit_date":"2015-12-20T01:54:11.817...
[ -0.0032501220703125, -0.0144195556640625, 0.004962921142578125, -0.0209197998046875, -0.01093292236328125, -0.0187835693359375, -0.0125274658203125, 0.01453399658203125, -0.0197296142578125, 0.0171356201171875, -0.0182037353515625, -0.006557464599609375, 0.03472900390625, -0.01406097412109...
[ 10, 47, 54, 87, 136, 254, 372, 398, 456, 984, 1295, 1305, 2053, 2795, 3062, 3444, 3642, 3871, 4332, 5885, 6226, 6782, 7068, 8752, 9191, 10002, 10723, 11249, 12620, 15044, 16750, 17777, 17925, 18151, 24447, 24503, 25842, 30474, 31635, 3186...
[ 0.01171875, 0.1162109375, 0.011474609375, 0.01123046875, 0.038818359375, 0.020751953125, 0.095703125, 0.007080078125, 0.1533203125, 0.02978515625, 0.06201171875, 0.19921875, 0.053466796875, 0.185546875, 0.078125, 0.04541015625, 0.076171875, 0.0281982421875, 0.0419921875, 0.0620...
5fb472de-2855-56db-a0a8-b56587f4400d
5,194
0
Title: When to use an extension method with lambda over LINQtoObjects to filter a collection? I am prototyping some C# 3 collection filters and came across this. I have a collection of products: public class MyProduct { public string Name { get; set; } public Double Price { get; set; } public string Desc...
311
287
[ ".net", "c#" ]
[ "c#", "linq", ".net-3.5", "lambda" ]
{"accepted_answer_id":5199,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T19:23:13.127000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2014-06-17T17:21:54.600000+00:00","last_edit_date":"2014-06-17T17:21:54.600000+00...
[ 0.0178680419921875, -0.0010652542114257812, -0.001873016357421875, 0.0171661376953125, 0.01081085205078125, -0.01528167724609375, -0.01739501953125, 0.01010894775390625, 0.007640838623046875, 0.006992340087890625, -0.016693115234375, 0.0195159912109375, -0.00858306884765625, 0.002174377441...
[ 4, 5, 7, 15, 18, 21, 47, 70, 71, 74, 85, 100, 104, 138, 188, 237, 285, 313, 329, 398, 645, 678, 830, 836, 1221, 1238, 1242, 1286, 1456, 1632, 2046, 2203, 2646, 2676, 2737, 2740, 3525, 3789, 3835, 3882, 4517, 4527, 4904, 5046, 52...
[ 0.007568359375, 0.005859375, 0.00732421875, 0.008056640625, 0.005615234375, 0.08984375, 0.00732421875, 0.007080078125, 0.0830078125, 0.007080078125, 0.2060546875, 0.00439453125, 0.140625, 0.15625, 0.216796875, 0.007568359375, 0.126953125, 0.0283203125, 0.0078125, 0.031982421875...
86a5fdda-2776-5b91-9259-6e6891a1f835
5,269
0
Title: C# logic order and compiler behavior In C#, (and feel free to answer for other languages), what order does the runtime evaluate a logic statement? Example: DataTable myDt = new DataTable(); if (myDt != null && myDt.Rows.Count > 0) { //do some stuff with myDt } Which statement does the runtime evaluate...
169
190
[ "c#" ]
[ "c#", "logic", "operator-precedence" ]
{"accepted_answer_id":5276,"answer_count":18,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T20:30:00.683000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2024-06-27T18:16:34.727000+00:00","last_edit_date":"2024-06-27T18:16:34.727000+00:00","...
[ 0.033966064453125, 0.0049591064453125, 0.0115203857421875, -0.01229095458984375, 0.0247039794921875, -0.0124053955078125, -0.003429412841796875, 0.018402099609375, 0.006412506103515625, -0.01128387451171875, -0.05010986328125, 0.033477783203125, -0.003429412841796875, -0.0220794677734375, ...
[ 5, 10, 13, 18, 31, 136, 246, 289, 313, 337, 397, 618, 619, 678, 707, 711, 756, 757, 759, 977, 1176, 1230, 1614, 1733, 2367, 2886, 3229, 3525, 4127, 4420, 4527, 4785, 4904, 5117, 6032, 7143, 9969, 11343, 11675, 11809, 12724, 12989, 1...
[ 0.021240234375, 0.009521484375, 0.0615234375, 0.1513671875, 0.05615234375, 0.037353515625, 0.009033203125, 0.041015625, 0.0595703125, 0.0177001953125, 0.09326171875, 0.09130859375, 0.1083984375, 0.033447265625, 0.01025390625, 0.06005859375, 0.010009765625, 0.1357421875, 0.1318359...
34795212-258d-594b-9b82-c502e7149b96
5,307
0
Title: Print a Winform/visual element All the articles I've found via google are either obsolete or contradict one another. What's the easiest way to print a form or, say, a richtextbox in c#? I think it's using the PrintDiaglog class by setting the Document, but how does this get converted?
73
80
[ "c#" ]
[ "c#", "winforms" ]
{"accepted_answer_id":5317,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T20:58:14.060000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2012-04-25T15:12:44.533000+00:00","last_edit_date":"2012-04-25T15:12:44.533000+00:00","q...
[ -0.0036067962646484375, -0.01454925537109375, 0.001239776611328125, -0.01514434814453125, -0.0265960693359375, -0.0226898193359375, -0.006622314453125, 0.03228759765625, 0.01092529296875, 0.038726806640625, -0.0174560546875, 0.0147247314453125, 0.0160369873046875, -0.035614013671875, 0.0...
[ 13, 23, 28, 47, 70, 71, 177, 390, 501, 525, 601, 1544, 1824, 2046, 2304, 3173, 3642, 3917, 4867, 4904, 5351, 11728, 12830, 14037, 15700, 17368, 18507, 20605, 22829, 26484, 28412, 38440, 39754, 43101, 46334, 48962, 53550, 61669, 72838, 988...
[ 0.027587890625, 0.0164794921875, 0.044189453125, 0.044677734375, 0.0272216796875, 0.045166015625, 0.04248046875, 0.01025390625, 0.0181884765625, 0.10595703125, 0.1005859375, 0.1513671875, 0.125, 0.020263671875, 0.076171875, 0.2255859375, 0.03369140625, 0.08203125, 0.2109375, 0....
7e07a6fc-60df-530b-b921-ccdfb9f58a81
5,511
0
Title: Numeric Data Entry in WPF How are you handling the entry of numeric values in WPF applications? Without a NumericUpDown control, I've been using a TextBox and handling its PreviewKeyDown event with the code below, but it's pretty ugly. Has anyone found a more graceful way to get numeric data from the user w...
332
498
[ "c#" ]
[ "c#", "wpf" ]
{"accepted_answer_id":7794,"answer_count":17,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T00:37:55.020000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2019-01-11T10:08:40.937000+00:00","last_edit_date":"2019-01-11T10:08:40.937000+00:00","...
[ 0.01593017578125, 0.003025054931640625, -0.01534271240234375, -0.01983642578125, 0.01262664794921875, -0.0177001953125, -0.011566162109375, 0.005283355712890625, 0.0023021697998046875, 0.00377655029296875, -0.020294189453125, 0.0227813720703125, 0.04107666015625, 0.0014162063598632812, 0...
[ 14, 23, 28, 70, 75, 83, 111, 164, 195, 238, 282, 316, 318, 357, 538, 601, 987, 1126, 1286, 1295, 1771, 1914, 2046, 2053, 2292, 2389, 3917, 4224, 6226, 7614, 7710, 8331, 11809, 12259, 14375, 15123, 15490, 16269, 17368, 18151, 18444, 19...
[ 0.0174560546875, 0.030517578125, 0.091796875, 0.013427734375, 0.005126953125, 0.095703125, 0.04736328125, 0.0296630859375, 0.05859375, 0.12890625, 0.09375, 0.07763671875, 0.044921875, 0.1376953125, 0.0322265625, 0.09423828125, 0.026123046875, 0.1259765625, 0.039794921875, 0.151...
d932203a-f99b-589a-8fa5-e375fe480ed1
5,694
0
Title: The imported project "C:\Microsoft.CSharp.targets" was not found I got this error today when trying to open a Visual Studio 2008 project in Visual Studio 2005: The imported project "C:\Microsoft.CSharp.targets" was not found.
63
66
[ "c#" ]
[ "c#", "visual-studio" ]
{"accepted_answer_id":5695,"answer_count":20,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T05:08:45.020000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2023-07-25T13:03:09.830000+00:00","last_edit_date":"2015-06-17T08:54:46.930000+00:00","...
[ 0.002288818359375, -0.00612640380859375, 0.008026123046875, -0.0085601806640625, 0.0041046142578125, 0.0321044921875, 0.002765655517578125, 0.03973388671875, -0.0233154296875, 0.0120697021484375, -0.029144287109375, -0.00910186767578125, 0.0191497802734375, 0.0110015869140625, 0.01748657...
[ 7, 12, 71, 254, 441, 509, 867, 903, 959, 2021, 3467, 3794, 4078, 9803, 13452, 14037, 18499, 19283, 22968, 31577, 73372, 76242, 113387 ]
[ 0.0703125, 0.046142578125, 0.0947265625, 0.21484375, 0.04736328125, 0.0302734375, 0.16015625, 0.010009765625, 0.10546875, 0.220703125, 0.17578125, 0.2353515625, 0.181640625, 0.1171875, 0.1904296875, 0.1484375, 0.150390625, 0.07421875, 0.177734375, 0.0361328125, 0.158203125, ...
09c862bf-d4f1-5783-9fcb-0b1e9d80aef2
5,706
0
Title: When do Request.Params and Request.Form differ? I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. What are the differences between these methods that could cause this?
48
63
[ "c#" ]
[ "c#", "asp.net", "request" ]
{"accepted_answer_id":5709,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T05:40:49.713000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2012-12-21T10:07:41.333000+00:00","last_edit_date":"2012-12-21T10:07:41.333000+00:00","q...
[ 0.008148193359375, -0.01198577880859375, -0.024810791015625, -0.0137176513671875, -0.0016031265258789062, -0.018096923828125, -0.00244140625, 0.0224151611328125, -0.01666259765625, 0.0224151611328125, -0.066162109375, 0.0008764266967773438, 0.0303192138671875, -0.00121307373046875, 0.009...
[ 5, 7, 54, 136, 678, 853, 1284, 2174, 2967, 4126, 5809, 5885, 6097, 8256, 14847, 17203, 17721, 22304, 28636, 34292, 48962, 56574, 60212, 75616, 97351, 102973, 129927, 150624, 190647 ]
[ 0.052978515625, 0.05859375, 0.0164794921875, 0.04248046875, 0.09130859375, 0.06884765625, 0.008544921875, 0.0361328125, 0.1064453125, 0.002685546875, 0.0247802734375, 0.08984375, 0.030517578125, 0.216796875, 0.078125, 0.1220703125, 0.064453125, 0.02880859375, 0.1572265625, 0.15...
25b057c1-fc09-5c66-8d32-31b8aa0e9951
5,787
0
Title: Tab Escape Character? I'm just in the process of parsing some text and can't remember what the escape character is for a tab in C#?
34
39
[ "c#" ]
[ "c#" ]
{"accepted_answer_id":5788,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T09:28:41.423000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2016-03-11T20:38:15.580000+00:00","last_edit_date":"2013-10-17T19:44:42.197000+00:00","q...
[ 0.0263214111328125, -0.037933349609375, 0.007171630859375, 0.0020008087158203125, 0.044342041015625, -0.03271484375, -0.0208587646484375, -0.0020599365234375, -0.0259552001953125, 0.0162353515625, -0.039825439453125, -0.00284576416015625, 0.0160064697265625, -0.0303497314453125, 0.014343...
[ 18, 32, 70, 83, 100, 313, 366, 720, 831, 2263, 2367, 4904, 6953, 7986, 9433, 20928, 21656, 22193, 37629, 48962, 62816, 144281, 181540 ]
[ 0.03759765625, 0.000244140625, 0.041748046875, 0.05908203125, 0.041748046875, 0.04833984375, 0.0771484375, 0.0771484375, 0.0181884765625, 0.134765625, 0.042236328125, 0.1748046875, 0.0198974609375, 0.08935546875, 0.0245361328125, 0.2412109375, 0.1171875, 0.23046875, 0.1103515625,...
0169e98d-c170-58b2-b786-efc77495ac6e
5,831
0
Title: Binary patch-generation in C# Does anyone have, or know of, a binary patch generation algorithm implementation in C#? Basically, compare two files (designated old and new), and produce a patch file that can be used to upgrade the old file to have the same contents as the new file. The implementation would h...
962
1,013
[ "c#" ]
[ "c#", "file", "patch" ]
{"accepted_answer_id":5878,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T12:22:07.713000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2015-07-04T06:22:36.257000+00:00","last_edit_date":"2015-07-04T06:22:36.257000+00:00","q...
[ -0.0002332925796508789, -0.0184173583984375, -0.0166473388671875, -0.01363372802734375, 0.0261993408203125, -0.013336181640625, -0.03021240234375, 0.0192413330078125, 0.0391845703125, -0.01050567626953125, -0.058319091796875, 0.00696563720703125, 0.034698486328125, -0.04156494140625, 0.0...
[ 4, 5, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 23, 24, 25, 27, 32, 39, 45, 47, 51, 53, 54, 62, 67, 70, 83, 87, 90, 98, 99, 100, 102, 106, 107, 111, 136, 142, 144, 168, 180, 184, 186, 201, 214, 221, 223, 237, 238, 247, 25...
[ 0.03564453125, 0.0361328125, 0.0341796875, 0.03564453125, 0.03515625, 0.0361328125, 0.03515625, 0.03515625, 0.034423828125, 0.035400390625, 0.035888671875, 0.03564453125, 0.047119140625, 0.052978515625, 0.03515625, 0.025390625, 0.01025390625, 0.03564453125, 0.0257568359375, 0.0...
c133ef7e-f431-57aa-a80a-1113f9478c03
5,863
0
Title: WCF Service - Backward compatibility issue I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.1 and 2.0) client applications. I've managed to get the services to run correctly for 3.0 and greater clients, but when I publish the servi...
444
527
[ ".net", "c#" ]
[ "c#", ".net", "wcf", "web-services", "backwards-compatibility" ]
{"accepted_answer_id":15966,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T12:48:25.197000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2011-12-13T19:43:04.983000+00:00","last_edit_date":"2011-12-13T19:43:04.983000+0...
[ -0.0303802490234375, -0.0007185935974121094, 0.0125732421875, 0.00827789306640625, -0.00786590576171875, -0.028839111328125, -0.01727294921875, 0.03289794921875, 0.00281524658203125, -0.0013704299926757812, -0.0244293212890625, 0.043609619140625, 0.03265380859375, 0.0167999267578125, 0.0...
[ 7, 40, 136, 237, 254, 297, 402, 456, 587, 759, 831, 856, 882, 903, 919, 987, 1621, 1660, 1810, 1884, 2292, 2408, 2481, 3062, 3257, 3564, 3611, 3835, 3871, 4027, 4332, 4420, 4516, 4836, 5351, 7136, 7565, 7763, 9774, 10135, 10644, 10974...
[ 0.038818359375, 0.0927734375, 0.011962890625, 0.0159912109375, 0.013427734375, 0.1162109375, 0.04150390625, 0.05517578125, 0.119140625, 0.0225830078125, 0.029541015625, 0.07177734375, 0.142578125, 0.007568359375, 0.2392578125, 0.173828125, 0.000732421875, 0.0107421875, 0.03955078...
694a899e-9f28-500f-8541-aea8d255eea0
5,894
0
Title: Genealogy Tree Control I've been tasked (by my wife) with creating a program to allow her to track the family trees on both sides of our family. Does anyone know of a cost-effective (free) control to represent this type of information? What I'm looking for is a modified org-chart type chart/tree. The modifi...
165
188
[ "c#" ]
[ "c#", "controls", "tree", "genealogy" ]
{"accepted_answer_id":5906,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":"2014-02-18T16:13:53.160000+00:00","creation_date":"2008-08-08T13:15:34.703000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#"],"last_activity_date":"2021-10-25T12:30:07.773000+00:00","last_edit_date":"2019-01...
[ 0.012847900390625, 0.0216522216796875, -0.0019626617431640625, -0.01088714599609375, -0.020233154296875, -0.01314544677734375, -0.0076141357421875, -0.0185546875, 0.01416015625, 0.01427459716796875, -0.041412353515625, 0.01248931884765625, 0.01326751708984375, -0.010711669921875, -0.0015...
[ 10, 18, 47, 64, 70, 87, 90, 100, 110, 112, 116, 136, 237, 297, 604, 647, 678, 759, 765, 903, 988, 1257, 1284, 1360, 1380, 1528, 2060, 2446, 2499, 2809, 2886, 3432, 3714, 4677, 4904, 5608, 5609, 6226, 7779, 9254, 9319, 10644, 10840, ...
[ 0.037109375, 0.058349609375, 0.0859375, 0.0341796875, 0.010986328125, 0.003173828125, 0.0849609375, 0.0771484375, 0.1494140625, 0.12109375, 0.146484375, 0.0390625, 0.03125, 0.00634765625, 0.08935546875, 0.00341796875, 0.0299072265625, 0.031982421875, 0.061767578125, 0.008056640...
9f5651b8-1cb8-5021-a632-10352585b7ea
6,184
0
Title: How do I make event callbacks into my win forms thread safe? When you subscribe to an event on an object from within a form, you are essentially handing over control of your callback method to the event source. You have no idea whether that event source will choose to trigger the event on a different thread. ...
115
127
[ ".net", "c#" ]
[ "c#", ".net", "winforms", "multithreading", "events" ]
{"accepted_answer_id":6211,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T17:32:41.783000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2019-01-20T13:58:49.230000+00:00","last_edit_date":"2019-01-20T13:58:49.230000+00...
[ 0.01256561279296875, 0.0152130126953125, -0.0110015869140625, -0.0159912109375, 0, -0.026824951171875, -0.0123291015625, 0.0111846923828125, 0.0217742919921875, 0.02020263671875, -0.030181884765625, 0.0014362335205078125, -0.004238128662109375, 0.00763702392578125, 0.0171966552734375, ...
[ 7, 23, 47, 54, 98, 110, 214, 645, 1295, 1614, 2967, 3173, 3249, 3535, 3934, 6226, 6528, 11249, 11675, 11782, 12620, 12921, 14847, 19732, 19916, 23253, 28032, 28350, 31344, 34601, 35839, 36746, 41591, 46002, 48962, 53418, 55076, 55300, 68018...
[ 0.03466796875, 0.00732421875, 0.05322265625, 0.013671875, 0.06298828125, 0.0087890625, 0.021728515625, 0.051025390625, 0.078125, 0.1875, 0.166015625, 0.2470703125, 0.076171875, 0.07421875, 0.09375, 0.1962890625, 0.0732421875, 0.068359375, 0.030517578125, 0.2158203125, 0.27734...
0e88dc08-8980-5b98-a163-797457c02f67
6,301
0
Title: Why is Array.Length an int, and not an uint Why is Array.Length an int, and not a uint. This bothers me (just a bit) because a length value can never be negative. This also forced me to use an int for a length-property on my own class, because when you specify an int-value, this needs to be cast explicitly.....
104
129
[ ".net", "c#" ]
[ "c#", ".net", "int", "uint" ]
{"accepted_answer_id":6320,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2013-04-15T02:48:31.623000+00:00","creation_date":"2008-08-08T19:34:13.503000+00:00","has_accepted_answer":true,"is_closed":true,"languages":[".net","c#"],"last_activity_date":"2019-01-20T13:58:39.503000+00:00","last_edit_date":"...
[ 0.019866943359375, -0.016204833984375, -0.01006317138671875, -0.00841522216796875, 0.00974273681640625, -0.01531219482421875, -0.00235748291015625, 0.017974853515625, -0.0020732879638671875, -0.01392364501953125, -0.03924560546875, -0.0072784423828125, 0.00150299072265625, -0.0254364013671...
[ 5, 10, 18, 23, 34, 51, 53, 56, 75, 83, 100, 136, 142, 449, 831, 927, 959, 1314, 2499, 2685, 2856, 4288, 4527, 4785, 5267, 7244, 8306, 9655, 10002, 15044, 18507, 20654, 27494, 31304, 34292, 36290, 37702, 40140, 40907, 44084, 69253, 140...
[ 0.06494140625, 0.03759765625, 0.21484375, 0.1806640625, 0.138671875, 0.10009765625, 0.1826171875, 0.0400390625, 0.1318359375, 0.08740234375, 0.018310546875, 0.02490234375, 0.0810546875, 0.1787109375, 0.033935546875, 0.1982421875, 0.1181640625, 0.0537109375, 0.03466796875, 0.000...
252debf6-c388-55d8-8ec3-968591a361e8
6,325
0
Title: Why are unsigned int's not CLS compliant? Why are unsigned integers not CLS compliant? I am starting to think the type specification is just for performance and not for correctness.
41
53
[ ".net", "c#" ]
[ "c#", ".net", "unsigned-integer", "cls-compliant" ]
{"accepted_answer_id":6333,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T19:55:39.920000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2016-01-05T21:24:50.133000+00:00","last_edit_date":"2013-10-10T15:15:32.633000+00...
[ 0.01546478271484375, -0.0117340087890625, -0.0116729736328125, 0.0006265640258789062, 0.0116729736328125, -0.0008363723754882812, -0.022857666015625, 0.017120361328125, -0.0038051605224609375, 0.0006380081176757812, -0.03448486328125, 0.024566650390625, 0.00812530517578125, -0.015586853027...
[ 18, 23, 51, 150, 297, 313, 621, 892, 959, 1236, 5351, 9969, 10644, 19759, 23718, 26255, 26785, 29458, 31304, 44084 ]
[ 0.109375, 0.04443359375, 0.1142578125, 0.08984375, 0.05908203125, 0.064453125, 0.009521484375, 0.140625, 0.1171875, 0.0693359375, 0.01318359375, 0.0888671875, 0.1748046875, 0.21484375, 0.09912109375, 0.08935546875, 0.06005859375, 0.1376953125, 0.1953125, 0.0986328125 ]
df53f9c7-33b3-547a-a6d5-19b7c06de0f3
6,406
0
Title: How to access .Net element on Master page from a Content page? Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master? I have a ListView that lists people's names in a navigation area on the Master page. I would like to update the ListView after ...
259
298
[ ".net", "c#" ]
[ "c#", ".net" ]
{"accepted_answer_id":6412,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T21:39:04.283000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2016-02-11T09:54:13.050000+00:00","last_edit_date":"2016-02-11T09:54:13.050000+00...
[ -0.0013933181762695312, -0.01334381103515625, -0.0099639892578125, -0.0305938720703125, 0.026214599609375, -0.00232696533203125, 0.00759124755859375, -0.00231170654296875, 0.01209259033203125, 0.0264434814453125, -0.01055145263671875, -0.0221710205078125, 0.009368896484375, -0.00830078125,...
[ 5, 98, 132, 143, 456, 527, 571, 820, 959, 1295, 1660, 1884, 2053, 2965, 3395, 3445, 4439, 4527, 4904, 5303, 7077, 7103, 7250, 7722, 9191, 9969, 10941, 11249, 11675, 12830, 15270, 16128, 16428, 17203, 18499, 18897, 19048, 22751, 23180, 241...
[ 0.0146484375, 0.009033203125, 0.0274658203125, 0.107421875, 0.044189453125, 0.024658203125, 0.0947265625, 0.109375, 0.032470703125, 0.06396484375, 0.00634765625, 0.026123046875, 0.1162109375, 0.01025390625, 0.10693359375, 0.1103515625, 0.0146484375, 0.00927734375, 0.1435546875, ...
f091e702-8ad6-55dd-adff-7838c5a3a68c
6,414
0
Title: C# loop — break vs. continue In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave the structure of the loop, and go to the next iteration? Example: foreach (DataRow row in myTable.Rows) { if (someConditionEvalsToTrue) { ...
100
112
[ "c#" ]
[ "c#", "loops", "break", "enumeration", "continue" ]
{"accepted_answer_id":6417,"answer_count":16,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T21:49:01.127000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2025-12-31T23:38:37.010000+00:00","last_edit_date":"2024-03-01T11:46:24.543000+00:00","...
[ -0.01229095458984375, -0.0160675048828125, -0.0012969970703125, 0.00887298583984375, 0.00833892822265625, -0.006237030029296875, -0.005695343017578125, 0.025909423828125, 0.0028781890869140625, 0.005428314208984375, -0.0145721435546875, -0.003223419189453125, 0.01715087890625, -0.009895324...
[ 13, 47, 70, 74, 100, 136, 292, 313, 428, 434, 618, 720, 738, 759, 882, 903, 1405, 2174, 2320, 2367, 2886, 4904, 7763, 11737, 12724, 15555, 17721, 19725, 20209, 21342, 26950, 31358, 35166, 36356, 40956, 41581, 45646, 46876, 60212, 89536, ...
[ 0.00341796875, 0.046630859375, 0.02197265625, 0.006103515625, 0.0615234375, 0.09619140625, 0.006591796875, 0.03515625, 0.0947265625, 0.03173828125, 0.0262451171875, 0.1396484375, 0.05224609375, 0.048583984375, 0.0771484375, 0.043701171875, 0.1259765625, 0.0830078125, 0.0161132812...
4f763778-21db-5fd6-b5d5-06792d8401cb
6,557
0
Title: In C#, why can't a List<string> object be stored in a List<object> variable It seems that a List object cannot be stored in a List variable in C#, and can't even be explicitly cast that way. List<string> sl = new List<string>(); List<object> ol; ol = sl; results in Cannot implicitly convert type System.Coll...
171
217
[ ".net", "c#" ]
[ "c#", ".net", "generics", "covariance", "type-safety" ]
{"accepted_answer_id":6567,"answer_count":14,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-09T02:32:01.507000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#"],"last_activity_date":"2017-04-27T09:52:30.337000+00:00","last_edit_date":"2012-09-27T04:25:55.163000+0...
[ 0.019012451171875, 0.006305694580078125, -0.0240325927734375, 0.0108184814453125, -0.007320404052734375, 0.00286865234375, 0.0051116943359375, 0.027130126953125, 0.038482666015625, 0.00753021240234375, -0.021636962890625, -0.004482269287109375, -0.03466796875, -0.01404571533203125, -0.01...
[ 10, 18, 23, 47, 54, 71, 313, 360, 831, 1632, 1733, 1810, 2203, 3525, 3917, 4171, 4343, 4420, 4904, 4998, 5303, 8996, 10644, 10869, 12353, 15400, 20505, 23232, 24861, 26818, 29806, 32036, 36746, 37202, 37702, 48962, 50065, 50339, 53418, 77...
[ 0.008056640625, 0.111328125, 0.11328125, 0.04541015625, 0.0198974609375, 0.109375, 0.06982421875, 0.012939453125, 0.11328125, 0.03369140625, 0.0296630859375, 0.029541015625, 0.01123046875, 0.046875, 0.003173828125, 0.044677734375, 0.2109375, 0.03857421875, 0.21484375, 0.1230468...
d634b9dc-275f-55b7-b1fe-627dc396d9a2
6,623
0
Title: sgen.exe fails during build After changing the output directory of a visual studio project it started to fail to build with an error very much like:
34
36
[ "c#" ]
[ "c#", "visual-studio", "msbuild" ]
{"accepted_answer_id":27317,"answer_count":5,"chunk_count":3,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-09T04:57:00.577000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2025-03-23T20:58:43.947000+00:00","last_edit_date":"2019-01-20T13:57:49.267000+00:00","...
[ -0.0065460205078125, -0.002208709716796875, 0.034332275390625, -0.0192718505859375, 0.018035888671875, -0.01512908935546875, 0.0166778564453125, 0.037811279296875, 0.017547607421875, 0.01099395751953125, -0.00728607177734375, 0.0011425018310546875, 0.0301361083984375, 0.0010576248168945312...
[ 5, 7, 47, 53, 91, 442, 678, 1409, 1884, 4552, 5045, 12275, 13452, 14364, 18499, 20271, 21176, 26859, 35782, 45367, 46480, 48962, 140992, 151134 ]
[ 0.01513671875, 0.0263671875, 0.06005859375, 0.0703125, 0.11328125, 0.011962890625, 0.0322265625, 0.283203125, 0.0810546875, 0.04736328125, 0.05615234375, 0.181640625, 0.115234375, 0.1357421875, 0.1767578125, 0.095703125, 0.16796875, 0.06982421875, 0.2158203125, 0.1826171875, ...
9b1a1399-e183-5635-9bde-4bad5e462685
6,623
1
Title: sgen.exe fails during build After changing the output directory of a visual studio project it started to fail to build with an error very much like: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sgen.exe /assembly:C:\p4root\Zantaz\trunk\EASDiscovery\EASDiscoveryCaseManagement\obj\Release\EASDiscove...
813
1,024
[ "c#" ]
[ "c#", "visual-studio", "msbuild" ]
{"accepted_answer_id":27317,"answer_count":5,"chunk_count":3,"chunk_index":1,"closed_date":null,"creation_date":"2008-08-09T04:57:00.577000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#"],"last_activity_date":"2025-03-23T20:58:43.947000+00:00","last_edit_date":"2019-01-20T13:57:49.267000+00:00","...
[ -0.01357269287109375, -0.007602691650390625, 0.01332855224609375, -0.0139923095703125, 0.01544952392578125, -0.0173187255859375, 0.004058837890625, 0.036590576171875, 0.019622802734375, 0.0012645721435546875, -0.01508331298828125, -0.00902557373046875, 0.03271484375, 0.0103607177734375, ...
[ 5, 6, 7, 11, 12, 18, 47, 53, 58, 70, 71, 73, 91, 106, 133, 162, 164, 169, 170, 223, 238, 248, 254, 294, 313, 334, 382, 425, 441, 454, 568, 571, 617, 647, 678, 724, 867, 1181, 1212, 1405, 1409, 1511, 2021, 2109, 2187, 2594, 2...
[ 0.0732421875, 0.001708984375, 0.1064453125, 0.001220703125, 0.00390625, 0.001708984375, 0.01513671875, 0.0029296875, 0.001708984375, 0.000732421875, 0.00341796875, 0.0029296875, 0.119140625, 0.001953125, 0.00146484375, 0.09423828125, 0.06396484375, 0.134765625, 0.001220703125, ...