¡@

Home 

c# Programming Glossary: convert

LINQ query on a DataTable

http://stackoverflow.com/questions/10855/linq-query-on-a-datatable

AsEnumerable returns IEnumerable DataRow . If you need to convert IEnumerable DataRow to a DataTable use the CopyToDataTable extension...

How can I decode HTML characters in C#?

http://stackoverflow.com/questions/122641/how-can-i-decode-html-characters-in-c

character entities. Is there anything in .NET that can convert them to plain strings c# share improve this question You..

How to convert a column number (eg. 127) into an excel column (eg. AA)

http://stackoverflow.com/questions/181596/how-to-convert-a-column-number-eg-127-into-an-excel-column-eg-aa

to convert a column number eg. 127 into an excel column eg. AA How do.. number eg. 127 into an excel column eg. AA How do you convert a numerical number to an Excel column name in C# without using..

How is Generic Covariance & Contra-variance Implemented in C# 4.0?

http://stackoverflow.com/questions/245607/how-is-generic-covariance-contra-variance-implemented-in-c-sharp-4-0

which takes a T parameter. It would be nice to be able to convert seamlessly use an Action object as an Action string any method..

How to convert UNIX timestamp to DateTime and vice versa?

http://stackoverflow.com/questions/249760/how-to-convert-unix-timestamp-to-datetime-and-vice-versa

to convert UNIX timestamp to DateTime and vice versa As the title says..

How do you convert Byte Array to Hexadecimal String, and vice versa?

http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa

do you convert Byte Array to Hexadecimal String and vice versa This is probably.. I couldn't find an answer that neatly explains how you can convert a byte array to a hexadecimal string and vice versa. c# bytearray..

Convert hex string to byte array [duplicate]

http://stackoverflow.com/questions/321370/convert-hex-string-to-byte-array

to byte array duplicate Possible Duplicate How do you convert Byte Array to Hexadecimal String and vice versa in C# Can we.. Array to Hexadecimal String and vice versa in C# Can we convert a hex string to a byte array using a built in function in C#..

Split List into Sublists with LINQ

http://stackoverflow.com/questions/419019/split-list-into-sublists-with-linq

has the effect of grouping them into groups of 3. Then convert each group to a list and the IEnumerable of List to a List of..

.NET String to byte Array C#

http://stackoverflow.com/questions/472906/net-string-to-byte-array-c-sharp

String to byte Array C# How do I convert a string to a byte array in .NET C# Update Also please explain..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

the best code if that's the behaviour you want. TargetType convertedRandomObject TargetType randomObject If randomObject might.. is a reference type then use code like this TargetType convertedRandomObject randomObject as TargetType if convertedRandomObject.. convertedRandomObject randomObject as TargetType if convertedRandomObject null Do stuff with convertedRandomObject If randomObject..

Protect .NET code from reverse engineering?

http://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering

can't be reverse engineered Also it is possible to convert a C# application to native code and Xenocode is too costly... local machine is crackable. Eventually that code has to be converted into native machine code and every application that is runnable..

Convert generic List/Enumerable to DataTable?

http://stackoverflow.com/questions/564366/convert-generic-list-enumerable-to-datatable

Exists in .net any class static method or whatever to convert any list into a datatable The only thing that i can imagine..

How do I convert Word files to PDF programmatically?

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

do I convert Word files to PDF programmatically I have found several open.. several open source freeware programs that allow you to convert .doc files to .pdf files but they're all of the application.. found several programs that do have an SDK allowing you to convert .doc files to .pdf files but they're all of the proprietary..

In C#, why can't a List<string> object be stored in a List<object> variable

http://stackoverflow.com/questions/6557/in-c-why-cant-a-liststring-object-be-stored-in-a-listobject-variable

string List object ol ol sl results in Cannot implicitly convert type System.Collections.Generic.List string to System.Collections.Generic.List.. string List object ol ol List object sl results in Cannot convert type System.Collections.Generic.List string to System.Collections.Generic.List.. because once you hit the Foo instance the Foo could not be converted to string As a side note I think it would be more significant..

C# convert integer to hex and back again

http://stackoverflow.com/questions/1139957/c-sharp-convert-integer-to-hex-and-back-again

improve this question Store integer 182 int decValue 182 Convert integer 182 as a hex in a string variable string hexValue decValue.ToString.. in a string variable string hexValue decValue.ToString X Convert the hex string back to the number int decAgain int.Parse hexValue..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

serverReplyTime 40 Get the seconds part ulong intPart BitConverter.ToUInt32 ntpData serverReplyTime Get the seconds fraction.. Get the seconds fraction ulong fractPart BitConverter.ToUInt32 ntpData serverReplyTime 4 Convert From big endian.. fractPart BitConverter.ToUInt32 ntpData serverReplyTime 4 Convert From big endian to little endian intPart SwapEndianness intPart..

Convert IEnumerable to DataTable

http://stackoverflow.com/questions/1253725/convert-ienumerable-to-datatable

IEnumerable to DataTable Is there a nice way to convert an.. .Equals typeof Nullable propType new NullableConverter propType .UnderlyingType table.Columns.Add prop.Name propType.. share improve this question Look at this one Convert List IEnumerable to DataTable DataView In my code I changed..

How can I easily convert DataReader to List<T>? [duplicate]

http://stackoverflow.com/questions/1464883/how-can-i-easily-convert-datareader-to-listt

data access layer select method Pattern 7 answers Convert rows from a data reader into typed results 3 answers ..

How do I Convert a string to an enum in C#?

http://stackoverflow.com/questions/16100/how-do-i-convert-a-string-to-an-enum-in-c

do I Convert a string to an enum in C# What's the best way to convert a..

Simple 2 way encryption for C#

http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp

#endregion return UTFEncoder.GetString decryptedBytes Convert a string to a byte array. NOTE Normally we'd create a Byte Array..

C# - Convert UTC/GMT time to local time

http://stackoverflow.com/questions/179940/c-sharp-convert-utc-gmt-time-to-local-time

Convert UTC GMT time to local time We are developing a C# application..

How to Convert JSON object to Custom C# object?

http://stackoverflow.com/questions/2246694/how-to-convert-json-object-to-custom-c-sharp-object

to Convert JSON object to Custom C# object Is there an easy way to populate..

Convert webpage to image from ASP.NET

http://stackoverflow.com/questions/2715385/convert-webpage-to-image-from-asp-net

webpage to image from ASP.NET I would like to create a function..

Convert integers to written numbers

http://stackoverflow.com/questions/3213/convert-integers-to-written-numbers

integers to written numbers Is there an efficient method of..

Convert hex string to byte array [duplicate]

http://stackoverflow.com/questions/321370/convert-hex-string-to-byte-array

hex string to byte array duplicate Possible Duplicate How do.. Enumerable.Range 0 hex.Length .Where x x 2 0 .Select x Convert.ToByte hex.Substring x 2 16 .ToArray share improve this answer..

Convert Rtf to HTML

http://stackoverflow.com/questions/439301/convert-rtf-to-html

Rtf to HTML Are there any libraries around that can convert.. question I would check out this tool on CodeProject RTFConverter. This guy gives a great breakdown of how the program works..

Where can I find a Java to C# converter?

http://stackoverflow.com/questions/443010/where-can-i-find-a-java-to-c-sharp-converter

Visual Studio 2005 Standard Edition. Select File Open Convert Java Language Conversion Assistant. Remember to manually go..

Convert DataTable to generic List?

http://stackoverflow.com/questions/545328/convert-datatable-to-generic-list

DataTable to generic List public static IList T ConvertTo T.. DataTable to generic List public static IList T ConvertTo T DataTable table if table null return null List DataRow.. foreach DataRow row in table.Rows rows.Add row return ConvertTo T rows public static T ConvertItem T DataTable table T obj..

Convert generic List/Enumerable to DataTable?

http://stackoverflow.com/questions/564366/convert-generic-list-enumerable-to-datatable

generic List Enumerable to DataTable I have few methods that..

Convert HTML to PDF in .NET [closed]

http://stackoverflow.com/questions/564650/convert-html-to-pdf-in-net

HTML to PDF in .NET closed I want to generate PDF by passing..

Convert a bitmap into a byte array in C#?

http://stackoverflow.com/questions/7350679/convert-a-bitmap-into-a-byte-array-in-c

a bitmap into a byte array in C# Using C# is there a better.. improve this question There are a couple ways. ImageConverter public static byte ImageToByte Image img ImageConverter converter.. public static byte ImageToByte Image img ImageConverter converter new ImageConverter return byte converter.ConvertTo..

How to pass an array into a SQL Server stored procedure

http://stackoverflow.com/questions/11102358/how-to-pass-an-array-into-a-sql-server-stored-procedure

@Delimiter VARCHAR 255 RETURNS TABLE AS RETURN SELECT Item CONVERT INT Item FROM SELECT Item x.i.value ' . text 1 ' 'varchar max.. Item x.i.value ' . text 1 ' 'varchar max ' FROM SELECT XML CONVERT XML ' i ' REPLACE @List @Delimiter ' i i ' ' i ' .query '.'..

How to kill a thread in C# effectively?

http://stackoverflow.com/questions/12468734/how-to-kill-a-thread-in-c-sharp-effectively

CommandType.Text cmd.CommandText WAITFOR RECEIVE CONVERT int message_body AS Message FROM SBQ var dataTable new DataTable..

How to execute a stored procedure within C# program

http://stackoverflow.com/questions/1260952/how-to-execute-a-stored-procedure-within-c-sharp-program

1000 @i int SET @i 0 WHILE @i 5 BEGIN Print 'I VALUE ' CONVERT varchar 20 @i EXEC @command SET @i @i 1 END EDITED using System..

How to use the default Entity Framework and default date values

http://stackoverflow.com/questions/1609304/how-to-use-the-default-entity-framework-and-default-date-values

table with a date field that contains a default value of CONVERT VARCHAR 10 GETDATE 111 which is ideal for automatically inserting.. DateTime i.e. DateTime nor am I able to use either CONVERT or DateTime.Now.Today in the default value of the Entity Designer..

Reading compound documents in c#

http://stackoverflow.com/questions/179128/reading-compound-documents-in-c-sharp

0x04000000 NOSCRATCH 0x00100000 CREATE 0x00001000 CONVERT 0x00020000 FAILIFTHERE 0x00000000 NOSNAPSHOT 0x00200000 DIRECT_SWMR..

SHA1 hashing in SQLite: how?

http://stackoverflow.com/questions/3179021/sha1-hashing-in-sqlite-how

functions that allow to hash on the fly HashBytes 'SHA1' CONVERT nvarchar 32 N'admin' Is there is a similar function with SQLite..

LINQ to SQL using GROUP BY and COUNT(DISTINCT)

http://stackoverflow.com/questions/448203/linq-to-sql-using-group-by-and-countdistinct

SELECT t1 . answer_nbr AS a_id SELECT COUNT FROM SELECT CONVERT Bit t2 . user_nbr AS value t2 . answer_nbr t2 . poll_nbr FROM..

Importing XML Data From XML File To SQL Database

http://stackoverflow.com/questions/9672780/importing-xml-data-from-xml-file-to-sql-database

be able to access the file. Declare @xml XML Select @xml CONVERT XML bulkcolumn 2 FROM OPENROWSET BULK 'filePath fileName.xml'..

C# Linq to SQL: How to express “CONVERT([…] AS INT)”?

http://stackoverflow.com/questions/992189/c-sharp-linq-to-sql-how-to-express-convert-as-int

Linq to SQL How to express &ldquo CONVERT &hellip AS INT &rdquo In MSSQL you can convert a string into.. MSSQL you can convert a string into an integer like this CONVERT INT table.column Is there any C# expression that Linq to SQL.. any C# expression that Linq to SQL would translate to CONVERT INT ... c# linq linq to sql share improve this question ..