520 4
Find common multiples between element of array in C#?

Hi, how can I get the common multiples of all element of array for example I have this array 2 4 3 . And I want to get the common multiples I do this code but not working. Can someone help me please. Thanks.

...
Type
Question
C# Count common multiples
510 0
Create XML document using C# (Console Application example)
In this article, I have explained, how you can create XML document in C# using Console application, it should work in ASP.NET Web-Forms or MVC, as C# code remains same.
Type
Article
C# create xml file c# create xml document c# xml
507 1
how to convert datetime from one timezone to another in C#?

I am working on a C# project in which user can change datetime column time zone using its profile page. For example, when I log in into the system, I can change default time zone (PST) to Indian standard time(IST) after doing all the column of date time should show time-related to IST time zone.

Basically, we are saving all the datetime value in the database as PST time zone, now based on user-selected time zone I need to show datetime.

So I would like to convert my PST datetime (8/16/2016 12:56 PM) to IST or any other timezone selected by user dynamically using C#.

How can I convert datetime from PST to any time zone using C#?

...
Type
Question
C# datetime timezone conversion
500 2
C# error "Type 'string' does not contain a definition for 'equals' and no extension method 'equals' of type 'string' could be found."

Hi please I'm converting 12-hour AM/PM format, to military 24-hour time format using C# Console app.

Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock.

My code is that :

...
Type
Question
c# missing assembly
487 1
How to remove server headers from IIS in ASP.NET MVC easily, need step by step guide?

How do I remove unnecessary HTTP Headers in IIS and ASP.NET application simply, please provide me step by step tutorial for improving security in this area?

I have already googled this and found few solutions but I need an easy tutorial, which can guide me to remove all unnecessary HTTP Headers from Response.

Any link or step by step guide will work.

...
Type
Question
ASP.NET C# remove unnecessary headers MVC

478 1
How to convert byte[] array to string and Vice versa in C#?

Hello, I would like to know how to convert byte[] array to string and string to byte[] array in C#, using the best possible method, I know there are several links and methods available on the internet but I would like to know best and easy method for this, thanks.

...
Type
Question
C# byte array to string
463 1
How to create XML document using XDocument in C#?

Hello, I need to add some data in XML file by programmatically creating it using C# and XDocument, so how I will create it?

For example, Suppose if I need output like below in XML

...
Type
Question
C# ASP.NET XML Xdocument
460 1
How to access a variables and functions of a specific class from another class in C#

How to access variables and functions of a specific class from another class in C#

Please give an example.

...
Type
Question
C# .Net
457 2
How can I Enumerate an enum in C#?

How can I Enumerate an enum in C#? Here is my current code, and it does not works:

...
Type
Question
C# Enums loop-enumerate-enums-using-C#
429 0
Understanding Garbage Collection In C#
In this article, I have discussed in detail about how garbage collection works in C# .NET with an example in console application.
Type
Article
C# Garbage Collection In C#

Page 9 of 12