¡@

Home 

c# Programming Glossary: expected

What is “Best Practice” For Comparing Two Instances of a Reference Type?

http://stackoverflow.com/questions/104158/what-is-best-practice-for-comparing-two-instances-of-a-reference-type

getting more in to automated testing comparing reference expected data against that returned . While looking over some of the..

Excel “External table is not in the expected format.”

http://stackoverflow.com/questions/1139390/excel-external-table-is-not-in-the-expected-format

&ldquo External table is not in the expected format.&rdquo I'm trying to read an Excel xlsx file using the.. code shown below. I get an External table is not in the expected format. error unless I have the file already open in Excel... share improve this question External table is not in the expected format. typically occurs when trying to use an Excel 2007 file..

Distinct() with lambda?

http://stackoverflow.com/questions/1300088/distinct-with-lambda

it's somewhat verbose and well cludgy. What I would have expected is an overload that would take a lambda say a Func T T bool..

Catch multiple Exceptions at once?

http://stackoverflow.com/questions/136035/catch-multiple-exceptions-at-once

multiple times and if one of the manipulations fail in an expected way you want to reset the object. However if there is an unexpected.. way you want to reset the object. However if there is an unexpected Exception I still want to throw that higher. About the Answer..

Performance surprise with “as” and nullable types

http://stackoverflow.com/questions/1583050/performance-surprise-with-as-and-nullable-types

faster in this case and even the LINQ code which I'd have expected to be slower given the iterators involved beats the as code... is easy just check if the object isn't null and is of the expected type takes but a few machine code instructions. The cast is..

Understanding Garbage Collection in .net

http://stackoverflow.com/questions/17130382/understanding-garbage-collection-in-net

It will always print 1 . It now works the way you hope and expected it would work. Which does leave with the task of explaining..

Transactions in .net

http://stackoverflow.com/questions/224689/transactions-in-net

be called without Complete so it will be rolled back. The expected nesting etc is supported although you can't roll back an inner..

Access to Modified Closure (2)

http://stackoverflow.com/questions/304258/access-to-modified-closure-2

to do this any more the code in the question would work as expected. To show this not working without this change consider the following..

When should I dispose of a data context

http://stackoverflow.com/questions/389822/when-should-i-dispose-of-a-data-context

to hold onto an entity beyond when the DataContext is expected to be used or valid you can enforce that contract by calling..

parse and execute JS by C#

http://stackoverflow.com/questions/4744105/parse-and-execute-js-by-c-sharp

a script engine property. summary typeparam name T The expected property type. typeparam param name index The property index...

What is the real overhead of try/catch in C#?

http://stackoverflow.com/questions/52312/what-is-the-real-overhead-of-try-catch-in-c

How to add a Timeout to Console.ReadLine()?

http://stackoverflow.com/questions/57615/how-to-add-a-timeout-to-console-readline

multiple threads many hanging ReadLine's or otherwise unexpected behavior . Function relies on a busy wait. Which is a horrible.. a busy wait. Which is a horrible waste since the wait is expected to run anywhere from a number of seconds up to the timeout which..

How to create LINQ Expression Tree with anonymous type in it

http://stackoverflow.com/questions/606104/how-to-create-linq-expression-tree-with-anonymous-type-in-it

should be tossed in a static extension method class. As expected you won't get any Intellisense since the type isn't created..

What is the difference between Decimal, Float and Double in C#?

http://stackoverflow.com/questions/618535/what-is-the-difference-between-decimal-float-and-double-in-c

accurate to start with so it's not important for the expected results to maintain the decimal accuracy . Floating binary point..

Using C# regular expressions to remove HTML tags [duplicate]

http://stackoverflow.com/questions/787932/using-c-sharp-regular-expressions-to-remove-html-tags

How to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects

http://stackoverflow.com/questions/8030538/how-to-implement-custom-jsonconverter-in-json-net-to-deserialize-a-list-of-base

JSON object summary param name objectType type of object expected param param name jObject contents of JSON object that will be..

servicestack REST API and CORS

http://stackoverflow.com/questions/8211930/servicestack-rest-api-and-cors

return just about anything and it gets serialized as expected. It's not only easier to use than WCF with more features out..

Is there a JSON Web Token (JWT) example in C#?

http://stackoverflow.com/questions/10055158/is-there-a-json-web-token-jwt-example-in-c

new ApplicationException string.Format Invalid signature. Expected 0 got 1 decodedCrypto decodedSignature return payloadData.ToString..

Removing Wrapper Elements from XML-Serialized Array

http://stackoverflow.com/questions/1227693/removing-wrapper-elements-from-xml-serialized-array

MyInnerObjectProperty MyObject MyObjectProperty MyClass Expected XML file xml version 1.0 MyClass xmlns xsi http www.w3.org 2001..

How accurate is Thread.Sleep(TimeSpan)?

http://stackoverflow.com/questions/1303667/how-accurate-is-thread-sleeptimespan

it has failed on at least on one occasion failed because Expected greater than or equal to 2999 But was 2998 I don't understand..

Using CDATA with WCF REST starter kits

http://stackoverflow.com/questions/1374062/using-cdata-with-wcf-rest-starter-kits

break default throw new InvalidOperationException Expected text cdata underlying value public string Value get set public..

Comparing two List<string> for equality

http://stackoverflow.com/questions/1546925/comparing-two-liststring-for-equality

two lists of strings for equality in .NET 3.0 This fails Expected result. List string expected new List string expected.Add a..

Mocking a DataReader and getting a Rhino.Mocks.Exceptions.ExpectationViolationException: IDisposable.Dispose(); Expected #0, Actual #1

http://stackoverflow.com/questions/1792984/mocking-a-datareader-and-getting-a-rhino-mocks-exceptions-expectationviolationex

IDisposable.Dispose Expected #0 Actual #1 I'm trying to mock a SqlDataReader SqlDataReader.. IDisposable.Dispose Expected #0 Actual #1 error in my method using reader if reader.HasRows..

Why differs floating-point precision in C# when separated by parantheses and when separated by statements?

http://stackoverflow.com/questions/2491161/why-differs-floating-point-precision-in-c-sharp-when-separated-by-parantheses-an

same manner but as the code is below it does not pass X Expected 0.275153548f But was 0.275153786f TestFixture internal class..

unit test with lambda fail using rhino mock

http://stackoverflow.com/questions/4338095/unit-test-with-lambda-fail-using-rhino-mock

c__DisplayClassb .userModel.Email Expected #1 Actual #0. It fails but if I add .IgnoreArguments it works...

Alphanumeric sorting using LINQ

http://stackoverflow.com/questions/5093842/alphanumeric-sorting-using-linq

x x Actual Result AB1 Ab11 AB2 ABC1 ABC10 ABC10 ABC11 ABC2 Expected Result AB1 AB2 AB11 .. c# linq sorting share improve this..

Split the string with different conditions using Linq in C#

http://stackoverflow.com/questions/5273621/split-the-string-with-different-conditions-using-linq-in-c-sharp

delimiters or a space. Some Examples this is test A ABC Expected output this is test A and ABC this is a test ABC XYZ Expected.. output this is test A and ABC this is a test ABC XYZ Expected output this is a test ABC and XYZ This TASK is assigned to ANIL.. and XYZ This TASK is assigned to ANIL SHAM in our project Expected output This TASK is assigned to ANIL in our project and SHAM..

Regular Expression to split on spaces unless in quotes

http://stackoverflow.com/questions/554013/regular-expression-to-split-on-spaces-unless-in-quotes

in a quote. Input Here is my string it has six matches Expected output Here is my string it has six matches What pattern do..