C#

94K

Solutions

25K

Contributors

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi, I have the float array which is populated in c#

temperatureData= new float[570, 429];

Open in new window



I then prepare the data in c# to be send to the front end by doing the following (this might be where its going wrong)

System.Web.Script.Serialization.JavaScriptSerializer jSearializer = new System.Web.Script.Serialization.JavaScriptSerializer();
jSearializer.MaxJsonLength = int.MaxValue;
pd.TemperatureDataArray = jSearializer.Serialize(temperatureData);

ViewBag.TempDataArray = pd.TemperatureDataArray;

Open in new window



then in the front end i have

var tempDataArray = @(ViewBag.TempDataArray);


var imageTemperatureDataArray = JSON.stringify(tempDataArray);
imageTemperatureDataArray = JSON.parse(imageTemperatureDataArray);


alert(imageTemperatureDataArray[321, 228]);

Open in new window


However the value in position 321,228 in JS is not the same as in C#, so i assume its re-ordered the data some how


Can anyone advise where its getting muddled up?


I've attached the dataset which is was taken on a BP on this line
ViewBag.TempDataArray = pd.TemperatureDataArray


The correct value in the float array at this position  [321, 228] should be 346.795624
However in the front end i'm seeing 304.92453
0
Exploring SharePoint 2016
LVL 13
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Hello ,
 I TEST it with WEB API using POSTMAN it give DATA as empty : Please suggest.

API URL:
http://localhost/school/Student/getStudentList

Result
{
    "Message": "Data Received successfully",
    "Status": true,
    "Data": [ ]
}

Open in new window



Below is the code pattern i am trying :

Models
public class Student
{
    public int StudentId { get; set; }
    public string ClassName { get; set; }
    public int LocationId { get; set; }
}

public class ResponseModel
{
    public string Message { set; get; }
    public bool Status { set; get; }
    public object Data { set; get; }
}

Open in new window


Service Method
public ResponseModel LoadStudents (SqlCommand comm)
{
    ResponseModel _objResponseModel = new ResponseModel ();
    List<Student> students = new List<Student> ();
    Student rls = new Student ();
    comm.CommandText = "Select StudentId,ClassName,LocationId from Students";
    SqlDataReader dr = comm.ExecuteReader ();

    while (dr.Read ())
    {
        rls.StudentId = dr.GetInt32 (0);
        rls.ClassName = dr.GetString (1);
        rls.LocationId = dr.GetInt32 (2);

        students.Add (rls);
    }

    dr.Close ();

    _objResponseModel.Data = students;
    _objResponseModel.Status = true;
    _objResponseModel.Message = "Data Received successfully";

    return _objResponseModel;
}

Open in new window


Action
[Route ("school/Student/getStudentList")]
[HttpGet]
public HttpResponseMessage GetStudentList ()
{
    UserRectification rtg = new UserRectification ();
    ResponseModel _objResponseModel = new ResponseModel ();
    HttpResponseMessage msg;

    try
    {
        _objResponseModel = LoadStudents (comm);
        msg = Request.CreateResponse (HttpStatusCode.OK, _objResponseModel);
    }
    catch (InvalidOperationException ioe)
    {
        msg = Request.CreateResponse (HttpStatusCode.BadRequest, ioe.Message);
    }
    catch (Exception ex)
    {
        msg = Request.CreateResponse (HttpStatusCode.InternalServerError, ex.Message);
    }
    finally
    {

    }

    return msg;
}

Open in new window

0
I have one issue in this line of code.
I am getting one extra record which has CPP as false and CPPExpires as '2020-10-10'

Now based on the where condition I should not get this record but now sure why I am getting this record from the below condition

   lblTotalClipCustomer.Text = accounts.Where(x => x.CPP == true && x.CPPExpires >= DateTime.Today).Count().ToString();

Open in new window

0
Hello,
I need to write a nunit test for this bit of code:

using System;
using System.Linq;

namespace EE_Q29143059
{
    class Program
    {
        static void Main(string[] args)
        {
            var data = "1,0,0,1";
            var result = $"?{String.Join("&", data.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(x => $"message={x}"))}";
            Console.WriteLine(result);
            Console.ReadLine();
        }
    }
}

Thanks
0
Hello,
This bt of code is in LINQ for :
If we have to pass message int by int as query params
eg ?message=1&message=2&message=4&message=0&message=0&message=7

 sy.Code.Length == code.Length && sy.Code.Select((c, i) => new { c, i }).All(v => v.c != code[v.i]);

Open in new window


Any suggestions on how to write it if we can pass all the param in a single string

Thanks
0
Hi
i) Many of you know that I am working on getting my phone game IDE setup working. I have my first potentially very good ideas to play with/test.
I received excellent advice to make the game in Java first to know exactly what I'm trying to do, so I'm ready. It's working in a Javax JFrame. (thanks a lot - got my mind right)
I have been studying Javascript, some iOS, a look at some c# pages, Xcode pages..

ii) I am not getting it done as quickly as I hoped..I have so many questions every minute, u know how it goes..
Do you think it could be a plan to ask a Freelancer to completely help set me up, maybe over the phone? Ability to make games on any, every device, browser? I prefer back and forth banter, not sporadic articles. too much waiting. I need some first downs.
How many languages, SDK's and devices are there to accommodate me in this situation, have to learn? What did the agar.io or slither.io dudes do? Javascript!? How did they cover everything, all devices!? iPhones need special features. What else?  J2ME is a bust, so I need a new angle. The agar.io dudes made an iPhone app! Also Android App? Windows phone?

iii) I have access to one of Godaddy's private professional servers. - got major repeat customer credits for an appealing price for 10 years in. I hope it will serve the potential max players well. non VPN (can be clogged) Can I expect this to serve my players as well as agar.io and slither.io  do?

Freelancer a plan?
Thanks
0
This line of code should bring back 1 but I don't know why it's bringing back 2

frm.MultiValue.ActiveButtonCount = Convert.ToInt32(rd["ActiveButtonCount"] ?? 2);

Open in new window


I see the value is 1.
ee1.png
but it comes out as 2

ee2.png
0
I have a c# application with a windows forms containing a grid from where
i want to save grid records to a database (see  Attached Application screen)
Main Application screen showing the grid record to be inserted - I record
I have a Tuple defined to hold the grid records  from where i want to
move the records to a static class  before inserting into a database through a method
See  the Tuple scriipt below
The-Script.txt

On clicking the Save button the record is validated,  i then debugged the script above to see
whats happening with the Tuple.

First there are 2 records in the turple  instead  of one. One of them is correct while the second  hold
some fields from the master record. (see the 2 screen below)

First Record in the Turple -  Correct
Secone Record in Turple - partially empty
The problems I have are:

1.  The Script that should populate  my static class   with output.item1  ....item9  is empty
(i.e)
GridVariables.dgvtxtstaffno = output.Item1;
                GridVariables.dgvtxtcompanyname = output.Item2;
                GridVariables.dgvstartdate = Convert.ToDateTime(output.Item3);
                GridVariables.dgvenddate = Convert.ToDateTime(output.Item4);
                GridVariables.dgvyearsexp = output.Item5;
                GridVariables.dgvtxtposition = output.Item6;
                GridVariables.dgvtxtcompanycode = output.Item7;
                GridVariables.dgvtxtEmpId = output.Item8;
                GridVariables.dgvtxtEmpJobId = output.Item9;

Is my syntax wrong or how should i ensure that  the…
0
I'm getting the following error when I added this line of code within my using statement, I can't use the ref cmd. Trying to find a solutions to it...

                query += query + Environment.NewLine + (xxx.Tools.AdvanceOptionsQueryBuilder.BuildAdvanceOptionsQuery(ref cmd, SearchCriteria.AdvanceOptionsData));

        query += Environment.NewLine + "group by "+ 

                using (var cmd = DatabaseService.CreateCommand())
            {
                var systemCultureInfo = xxx.Parameters.ParameterConfigurationService.GetSystemCultureInfo(cmd);
                cmd.Parameters.Clear();


                cmd.CommandType = CommandType.Text;
                query += query + Environment.NewLine + (xxx.Tools.AdvanceOptionsQueryBuilder.BuildAdvanceOptionsQuery(ref cmd, 
              SearchCriteria.AdvanceOptionsData));

                cmd.CommandText = query;

Open in new window

0
I am looking for guidance on the proper way using VS C# to read two comma delimited text files and merge them into one based on a common column. In this case I have a header file and a detail file coming down from an old legacy system. The header file has the invoice number, date, amount and vendor ID. The detail file has the items on the invoice. The two files are linked by the invoice number column. There are many other columns in these tables and I only want the columns that contain the information for the invoice. I do have a method that uses TextFieldParser to strip away extra spaces and double quotes. I could create a loop that goes one record at a time through the header and then read through the detail file over and over again and extract the matching lines by invoice number. This seems to be the least efficient way of doing this. I was thinking perhaps of reading both files into two data tables and then looping through these two data tables to extract what is needed. This is where I need guidance. What would the code look like to read a text file, write the required fields to a data table inside the application, repeat for the second table and then loop through these data tables to perform the final extraction to be written out to another file. The actual destination is a table in SQL. Any tips and  links that can be provided that illustrate reading a text file and writing to a data table inside the application that would get me started would be appreciated.
0
Become a Certified Penetration Testing Engineer
LVL 13
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Hi,

I found this code to compile and execute code in runtime:

 Dim entrada As String

        Try

            entrada = My.Computer.FileSystem.ReadAllText("Codigo1.txt")
        Catch ex As Exception
            MessageBox.Show(" Erro : " + ex.Message)
            Return
        End Try



        Dim codigo = <code>
                       Imports System
                       Imports System.Windows.Forms

                       Public Class TempClass
                           Public Sub ResultadoTexto(ByVal txtOutput As TextBox)
                               <%= entrada %>
                           End Sub
                       End Class
                   </code>
        MsgBox(codigo)

        Try

            Dim vbProv = New VBCodeProvider()

            Dim vbParams = New CompilerParameters()

            vbParams.ReferencedAssemblies.Add("mscorlib.dll")
            vbParams.ReferencedAssemblies.Add("System.dll")
            vbParams.ReferencedAssemblies.Add("System.Windows.Forms.dll")
            vbParams.GenerateExecutable = False

            vbParams.GenerateInMemory = True

            Dim resultadoCompilacao = vbProv.CompileAssemblyFromSource(vbParams, codigo.Value)

            If resultadoCompilacao.Errors.Count > 0 Then

                For Each er In resultadoCompilacao.Errors
                    MessageBox.Show(er.ToString())
                Next
            Else

                Dim obj As Object = 

Open in new window

0
Hello,

What is the coding difference between c# and vb.net.
I am looking from syntax point of view.
Any suggestion are appreciated.

Thanks
0
I'm trying to use Impersonation to delete files by connecting to an NetWare server. The code below works when I run it from C# code behind but I need to hide the password\username. I tried Impersonation, but I get denied returned.
What is the best way to run net use command from my code?

var  cn = "net use " + ServerPath + " " + ServerPassword + " /user:" + ServerUsername;
0
Hi,

First of all, I think I understand what an extension method and how it used it.  However, the following code confuses me.
I have "ToDoPerTime.cs" class as below.

public interface PerTime<T>
    {
        T Morning { get; }
        T Lunch { get; }
        T Evening { get; }
    }
    internal struct TestProperties
    {
        public string Eat;
        public string Work;
        public string Sleep;
    }
    public enum TimeName
    {
        Morning,
        Lunch,
        Evening
    }
    [b]public static partial class PerTimeExtensions[/b]
    {
        public static T GetSettings<T>(this PerTime<T> perTime, TimeName time)
        {
            switch (time)
            {
                case TimeName.Morning: return perTime.Morning;
                case TimeName.Lunch: return perTime.Lunch;
                case TimeName.Evening: return perTime.Evening;
                default: throw new NotImplementedException();
            }
        }
    }
    class ToDoPerTime : PerTime<TestProperties>
    {
        public static ToDoPerTime Instance = new ToDoPerTime();
        public ToDoPerTime() { }
        public TestProperties Morning => new TestProperties
        {
            Eat = "Eggs",
            Work = "123",
            Sleep = "on the bed"
        };

        public TestProperties Lunch => throw new NotImplementedException();

        public TestProperties Evening => throw new NotImplementedException();
    }

Open in new window


And in UnitTest1.cs class, I use the extension method as below.

[TestClass]
    public class UnitTest1
    {
       [b] private readonly static TestProperties myProperties = ToDoPerTime.Instance.GetSettings(TimeName.Morning);[/b]
        [TestMethod]
        public void TestMethod1()
        {
            Console.WriteLine(myProperties.Eat);
        }
    }

Open in new window


These are my questions:
1. Why do we use partial class here to create an extension method?
2. I don't understand this part.
ToDoPerTime.Instance.GetSettings(TimeName.Morning);

Open in new window

The extension method GetSettings is inside "PerTimeExtensions" class. But it's using "ToDoPerTime" class.
ToDoPerTime.Instance instantiate ToDoPerTime class, right? But it then can access to the extension class in a different class?
I've seen the  partial classes using the same class name with different file names, but not like this.

Can anybody explain what's going on with this code?
0
I am attempting, for the first time, to use VS C# to create and write to an Excel spreadsheet. I created this method to create the spreadsheet.  When I run this code it creates the spreadsheet with the correct name in the correct folder. However, when I try to open this file using Excel it tells me the file is not of the correct format or is corrupt.  What am I missing? How do I correct this code to create a file with the correct format

public static Boolean CreateExcelSpreadsheet()
        {
            /* Initialize the Excel application Object */
            Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();

            /* Check whether Excel is installed */
            if (xlApp == null)
            {
                MessageBox.Show("Excel is not properly installed! Please install Excel or at least attempt to repair.");
                return(false);
            }
            /* Create the new workbook */
            Excel.Workbook xlWorkBook;
            Excel.Worksheet xlWorkSheet;
            object misValue = System.Reflection.Missing.Value;

            xlWorkBook = xlApp.Workbooks.Add(misValue);

            /* Write content to workbook using column headings */
            xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);

            xlWorkSheet.Cells[1, 1] = "VENDORID";
            xlWorkSheet.Cells[1, 2] = "DOCNUMBR";
            xlWorkSheet.Cells[1, 3] = "DOCTYPE";
            …
0
I have a bunch of html files in a directory
I need to locate a number of divs within these html files based on the div id
I don't know which html file contains a given div id

So rather then searching every file multiple times I thought about creating a regular expression for all wanted   div id open each file once then  do a patten match
Once I've located which file contains  a given div id  I can then pass the html string into a HtmlAgilityPack.HtmlDocument

My regEx isn't working  (Manuel search shows the fist div in the list is  in the first html file opened)
Pids.jpg
from the pic
The Regex PidsReg = {post_message_1234|post_message_5678| etc

Sample of code I nether get to match success

..........
                string[] folders = Directory.GetDirectories(RootDir, "*", SearchOption.TopDirectoryOnly);
                String Pids="";
                foreach (string folder in folders)
                {

                    FileInfo FI = new FileInfo(folder);
                    string DirectoryName = FI.Name;
                    Match DirNameMatch = DirNameReg.Match(DirectoryName);
                    if (DirectoryName.Contains(DirTextBox.Text) && DirNameMatch.Success)
                    {
                        string PID = "post_message_" + DirNameMatch.Groups[0];
                        Pids += PID + "|";
                    }
                }
                if (Pids != "")
                {
                    Pids = 

Open in new window

0
I am starting to use vbconversions software to translate some of my vs2008 vb.net projects over to c#.  These vb.net projects have been running for years on Symbol/Zebra scanners, and vs2008 is as high as I can go while developing apps for these devices.

vbconversions software is a paid subscription, and so far seems to do a very good job.  In the most recent conversion, I'm getting two errors that I need help with.

The vb.net code I've been using to play .wav files is:

    'This is the setup to make the PlaySiren sub work, to play a .wav on the scanner for errors...
    Public Class win32
        Public Declare Function PlaySoundW Lib "coredll.dll" Alias "PlaySoundW" (ByVal lpszName As String, ByVal hModule As Integer, ByVal dwFlags As Integer) As Integer
        Public Const SND_FILENAME = &H20000
        Public Const SND_ASYNC = &H1
        Public Const SND_SYNC = &H0
    End Class

...and there is a line at the top of the module that says "Imports System.Runtime.InteropServices".

Someone gave me this code years ago to play .wav files on the scanners, but I must admit I don't understand what all is being done here or how this works.  I may have come from an e-e contributor long ago.

Then when vbconversions did the translation to c#, it created this code:

            //This is the setup to make the PlaySiren sub work, to play a .wav on the scanner for errors...
            public class win32
            {
                  [DllImport("coredll.dll",EntryPoint="PlaySoundW", …
0
I have a List and a Grid i need to fill  from my database with the same information

The constructor for the JobHistoryModel is shown below:

 public string StaffVariationList
        {
            get
            {
                return $" {Staff_no} {Companyname} {DesignationID} {YearsExp}  { Startdate } { Enddate}  {Companycode}";
            }
        }

The script below  fills the list  (see attached screen)

Screen Showing the List (Filled) and the Empty Grid
List<JobHistoryModel> variations = GlobalConfig.Connection.GetJobHistoryRecords();
var data = (sender as ListBox).SelectedValue as EmployeeModel;
StaffJobHistoryList.DataSource = variations.Where(variation => data.Staff_no.Equals(variation.Staff_no)).ToList();
variations = variations.OrderBy(x => x.Staff_no).ThenBy(x => x.DesignationID).ToList();

Is it possible for me to do a script similar to above for the Grid  or i need to use a different Method  
to load the Grid

Olukay
0
Anybody installed Visual Studio 2019 yet?

I plan to instal it in prep for a code camp, and wonder who else has it running.

Let me know.

Thanks
0
Introduction to Web Design
LVL 13
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Hi Experts,

We just changed the look and feel of our website. But when user first load it, they see the old design and after they clear the cache, they can see the new one. Any suggestion how long it will take to update on their side if they don't clear the cache.

Please suggest!!
0
Hello,

I am using .net, 4.6.1 MVC web application to have the user login into external authentication (Office 365 for now). I am able to sign-in but unable to set the claims and my Request.IsAuthenticated is always false.

Unable to hit this code.
Provider = new MicrosoftAccountAuthenticationProvider
                {
                    OnAuthenticated = async context =>
                    {
..
..
}

Open in new window


Please advice.

Thanks.
AccountController.txt
Startup.txt
Login.txt
0
I want to use the Chartjs Library to create charts and am starting out with a simple Pie Chart. https://www.chartjs.org/docs/latest/charts/doughnut.html

First of all, I have the Chart.css and Chart.js files copied over to my Scripts folder.
My Controller has the following:

public ActionResult Dashboard()
        {
            int thirtyDays = DB.vw_Expires30Days.Count();
            int sixtyDays = DB.vw_Expires60Days.Count();
            int ninetyDays = DB.vw_Expires90Days.Count();

            double totalCount = Convert.ToDouble(thirtyDays) + Convert.ToDouble(sixtyDays) + Convert.ToDouble(ninetyDays);

            double thirtyDayPercentage = Math.Round((thirtyDays / totalCount) * 100, 2);
            double sixtyDayPercentage = Math.Round((sixtyDays / totalCount) * 100, 2);
            double ninetyDayPercentage = Math.Round((ninetyDays / totalCount) * 100, 2);

            List<PieSeriesData> pieData = new List<PieSeriesData>();

            pieData.Add(new PieSeriesData { Name = "30 Days", Y = thirtyDayPercentage });
            pieData.Add(new PieSeriesData { Name = "60 Days", Y = sixtyDayPercentage });
            pieData.Add(new PieSeriesData { Name = "90 Days", Y = ninetyDayPercentage, Sliced = true, Selected = true });

            ViewData["pieData"] = pieData;

            return View();
        }

Open in new window


My Dashboard View has the following:

@Scripts.Render("~/Scripts/Chartjs/Chart.js")

<script>
var ctx = document.getElementById('myChart');
var myChart = new Chart(ctx, {
    type: 'pie',
    data: {
        labels: ['30 Days', '31-60 Days', '61-90 Days'],
        datasets: [{
            label: 'Warranty Expiration',
            data: @ViewData["pieData"] as List<PieSeriesData>,
            backgroundColor: [
                'rgba(255, 99, 132, 0.2)',
                'rgba(54, 162, 235, 0.2)',
                'rgba(255, 206, 86, 0.2)'
            ],
            borderColor: [
                'rgba(255, 99, 132, 1)',
                'rgba(54, 162, 235, 1)',
                'rgba(255, 206, 86, 1)'
            ],
            borderWidth: 1
        }]
    },
    options: {

    }
});
</script>

<div class="container">
    <div class="col-xs-12">
    <div class="row">
        <div class="col-xs-10 col-xs-offset-1">

            <canvas id="myChart" width="400" height="400"></canvas>

        </div>

    </div>
   </div>
</div>

Open in new window

The chart does not render.  I'm trying to figure out what's missing.
0
Regex is so nuanced sometimes. I need a bit of help creating a regular expression that will capture the contents of a function so the outer function can be replaced while preserving the entire contents of the function.

Perhaps a brief explanation of exactly what I'm trying to accomplish will help any prospective experts understand my needs a little better. I need to do this because I have to do a mass replace on a lot of files containing queries that were originally written for Oracle. I need to make them compatible with Microsoft SQL Server. The specific example here is the Oracle TRIM(...) function. Microsoft SQL Server doesn't have this function but would instead use LTRIM(RTRIM(...)). This actually also works fine in Oracle so it's a bit of a no brainer to replace TRIM(MyColumnName) with LTRIM(RTRIM(MyColumnName)). Unfortunately, sometimes the contents of the TRIM(...) function may contain other functions. For (bad) example, TRIM(Coalesce(Sum(InvoiceTotal), 0)). The simplest Regex Replace would be to look for "TRIM(" and then find the nearest ")" but that won't work in this case because I'll end up with LTRIM(RTRIM(Coalesce(Sum(InvoiceTotal)), 0)) which is wrong. What I need instead is LTRIM(RTRIM(Coalesce(Sum(InvoiceTotal), 0))). As you might be able to see, I need a balancing group to accomplish this and make sure I have the parentheses matched properly.

I've read up on balancing groups here: …
0
Hello,
Any ideas please if i want to fill combobox in Async way.I am using WinForm C# ComboBox

Combobox has more then 500-1000 items dynamically filled.

I need a way if i can fill DataSource which is basically Model Type CustomerList before
and then just bind it at the time of Combobox initlization to improve loading time.

Currently it takes lot of time for form load as Combobox items are added.

If any option or ideas please share.

Thanks.
Abhilashs
0
Hi


How do I write the FromXml to read an xml file into the given opbject?

Once read in I need to test if a given OldPath exists


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

class MainClass
{
    class Program
    {


        // create two logs to hold each list
        
        public static List<HistoryLog> historyLogs = new List<HistoryLog>();
        static List<DownloadLog> downloadLogs = new List<DownloadLog>();

        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World");
            // Dummy varibles;

            int myID = 123;
            int FileCount = 234;
            string ModName = "Hello World";
            string OldDir = @"D:\Path\To\OldPath";
            string NewDir = @"D:\Path\To\NewPath";

            if(File.Exists("DownloadLog.xml") ){
              Console.WriteLine("Hello DownloadLog.xml");
              downloadLogs.FromXml("history", "DownloadLog.xml");

            foreach (var downloadLog in downloadLogs)
            {
                Console.WriteLine("download Name: {0} download OldPath: {1}  ", downloadLog.Name, downloadLog.OldPath );


            }


            }
            else {


            // make a loop just   to test
            // this is to simulate where the infomation will be
            // derived from  with some condition deturmining if 
       

Open in new window

0

C#

94K

Solutions

25K

Contributors

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).