¡@

Home 

c# Programming Glossary: ms

How can a Word document be created in C#? [closed]

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c

this Third party tools What are your experiences c# .net ms word openxml share improve this question The answer is going.. Introducing the Office 2007 Open XML File Formats http msdn.microsoft.com en us library aa338205.aspx share improve this..

A generic error occurred in GDI+, JPEG Image to MemoryStream

http://stackoverflow.com/questions/1053052/a-generic-error-occurred-in-gdi-jpeg-image-to-memorystream

error occurred in GDI JPEG Image to MemoryStream This seems to be a bit of an infamous error all over the web. So much so.. ConvertImageToByteArray Image imageToConvert using var ms new MemoryStream ImageFormat format switch imageToConvert.MimeType.. format ImageFormat.Jpeg break imageToConvert.Save ms format return ms.ToArray More detail to the exception. The..

JavaScriptSerializer.Deserialize - how to change field names

http://stackoverflow.com/questions/1100191/javascriptserializer-deserialize-how-to-change-field-names

DataContractJsonSerializer typeof DataObject MemoryStream ms new MemoryStream Encoding.Unicode.GetBytes JsonData DataObject.. JsonData DataObject dataObject serializer.ReadObject ms as DataObject Assert.IsNotNull dataObject Assert.AreEqual low.. value and fails. See DataContractJsonSerializer and Enums for further details. In my opinion this is quite poor especially..

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

string json T obj Activator.CreateInstance T MemoryStream ms new MemoryStream Encoding.Unicode.GetBytes json DataContractJsonSerializer.. serialiser new DataContractJsonSerializer obj.GetType ms.Close return obj Deserialise from JSON Serializable public.. json T obj Activator.CreateInstance T using MemoryStream ms new MemoryStream Encoding.Unicode.GetBytes json DataContractJsonSerializer..

How do you do a deep copy an object in .Net (C# specifically)?

http://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-an-object-in-net-c-specifically

method as such public static T DeepClone T T obj using var ms new MemoryStream var formatter new BinaryFormatter formatter.Serialize.. var formatter new BinaryFormatter formatter.Serialize ms obj ms.Position 0 return T formatter.Deserialize ms Notes Your.. formatter new BinaryFormatter formatter.Serialize ms obj ms.Position 0 return T formatter.Deserialize ms Notes Your class..

String output: format or concat in C#?

http://stackoverflow.com/questions/16432/string-output-format-or-concat-in-c

and 100 milliseconds. In both situations you will get 0 ms after dividing it by 1000000. Stopwatch s new Stopwatch var.. 0 1 p.FirstName p.LastName took fElapsedMilliseconds ms fElapsedTicks ticks Console.WriteLine n.ToString x result p.FirstName.. x result p.FirstName p.LastName took cElapsedMilliseconds ms cElapsedTicks ticks Thread.Sleep 4000 Those are my results 1000000..

Creating a byte array from a stream

http://stackoverflow.com/questions/221925/creating-a-byte-array-from-a-stream

on whether or not you can trust s.Length . For many streams you just don't know how much data there will be. In such cases.. input byte buffer new byte 16 1024 using MemoryStream ms new MemoryStream int read while read input.Read buffer 0 buffer.Length.. int read while read input.Read buffer 0 buffer.Length 0 ms.Write buffer 0 read return ms.ToArray EDIT I should perhaps..

Is DateTime.Now the best way to measure a function's performance?

http://stackoverflow.com/questions/28637/is-datetime-now-the-best-way-to-measure-a-functions-performance

PerformWork sw.Stop Console.WriteLine Time taken 0 ms sw.Elapsed.TotalMilliseconds Stopwatch automatically checks.. and such. DateTime.UtcNow typically has a resolution of 15 ms. See John Chapman's blog post about DateTime.Now precision for..

How do I convert Word files to PDF programmatically?

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

I have found several open source freeware programs that allow you to convert .doc files to .pdf files but they're.. variety with no SDK attached. I have found several programs that do have an SDK allowing you to convert .doc files to .pdf.. to my problem using C# or VB.NET Thanks c# vb.net pdf ms word share improve this question Here is a modification of..

How can a Word document be created in C#? [closed]

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c

project where I would like to generate a report export in MS Word format. The report will include images graphs tables and..

What are the most important functional differences between C# and VB.NET?

http://stackoverflow.com/questions/11632/what-are-the-most-important-functional-differences-between-c-sharp-and-vb-net

of the box refactoring tools for C# In general the things MS focuses on for each vary because the two languages are targeted..

Big integers in C#

http://stackoverflow.com/questions/176775/big-integers-in-c-sharp

biginteger largenumber j# share improve this question MS is going to introduce System.Numerics.BigInteger class in .NET..

C# - How to get Program Files (x86) on Windows Vista 64 bit

http://stackoverflow.com/questions/194157/c-sharp-how-to-get-program-files-x86-on-windows-vista-64-bit

but the program I'm looking for is a right old kludge of a MS DOS application and I couldn't think of another method . On..

Why does C# not provide the C++ style 'friend' keyword?

http://stackoverflow.com/questions/203616/why-does-c-sharp-not-provide-the-c-style-friend-keyword

because of C#'s pure OOness compared to C 's pseudo OOness MS decided that because Java has no friend keyword C# shouldn't..

Query Microsoft Access MDB Database using LINQ and C#

http://stackoverflow.com/questions/295772/query-microsoft-access-mdb-database-using-linq-and-c-sharp

provider or a LINQ to JET OLEDB provider. Out of the box MS doesn't make one. There may be a 3rd party who does. share..

C# Telnet Library

http://stackoverflow.com/questions/390188/c-sharp-telnet-library

don't support a scripted mode . I am assuming that MS still has not included a telnet library as part of .NET v3.5..

How to pass table value parameters to stored procedure from .net code

http://stackoverflow.com/questions/5595353/how-to-pass-table-value-parameters-to-stored-procedure-from-net-code

parameters to stored procedure from .net code I have an MS SQL Server 2005 database. In a few procedures I have table parameters.. sqlcommand share improve this question Looks like the MSSQL Tips article Table Value Parameters in SQL Server 2008 and..

Read MS Exchange email in C#

http://stackoverflow.com/questions/652549/read-ms-exchange-email-in-c-sharp

MS Exchange email in C# I need the ability to monitor for and.. monitor for and read email from a particular mailbox on a MS Exchange Server internal to my company . I also need to be able..

Writing large number of records (bulk insert) to Access in .NET/C#

http://stackoverflow.com/questions/7070011/writing-large-number-of-records-bulk-insert-to-access-in-net-c

C# What is the best way to perform bulk inserts into an MS Access database from .NET Using ADO.NET it is taking way over..

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

http://stackoverflow.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0

ASP.NET v4.0' I have a web project c# asp.net EF 4 and MS SQL 2008 IIS 7 I need to move my website that was working with.. resources in this page that permission must be grant on MS SQL 2008 manually as arift explain in his answer. Using IIS.. manually as arift explain in his answer. Using IIS 7.5 and MS SQL 2008 R2 manual setting for the permission should not be..

OCR for .NET [closed]

http://stackoverflow.com/questions/870280/ocr-for-net

but I couldn't find what I needed. The MODI function from MS Office 2007 OCR makes the deployment of my program impossible.. of my program impossible because all of my users must have MS Office 2007 on their computers. Is there a way to use the OCR.. on their computers. Is there a way to use the OCR from MS Office without the requirement to have Office installed If there..

How to render a formula in WPF or WinForms

http://stackoverflow.com/questions/8899204/how-to-render-a-formula-in-wpf-or-winforms

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing

IDE this can be useful if you want to run tests on a non MS build server like CC.Net NUnit has more versions coming out.. this is caused by the Visual Studio testrunner running MSTest tests in TestDriven.Net makes MSTest performance comparable.. testrunner running MSTest tests in TestDriven.Net makes MSTest performance comparable to NUnit. share improve this answer..

Why is Multiple Inheritance not allowed in Java or C#?

http://stackoverflow.com/questions/995255/why-is-multiple-inheritance-not-allowed-in-java-or-c

designers. For example for .NET Chris Brumme who worked at MS on the CLR has explained the reasons why they decided not to..