C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

learn more… | top users | synonyms (4) | c# jobs

0
votes
0answers
3 views

Displaying System.Web.Helpers.Chart without template

I'm doing an asp.net web Mvc4 application by Razor engine. i'd liketo add a chart to a view like this: @model System.Web.Helpers.Chart @{ Layout = "~/Views/Shared/Template.cshtml"; } @section ...
0
votes
0answers
4 views

Add a landscape page to a pivot view

I'm trying to add one landscape page to my pivot view. The rest of the pages are portrait pages. How can I achieve this? Cheers
-1
votes
1answer
9 views

Changing a HeaderTemplate of a PanoramaItem programmatly (c#)?

Can you please explain me how to custom a PanoramaItem's HeaderTemplate so that the FontSize can be reduced? Naturally I mean to do this in C# (programmatly)! Thanks!
0
votes
2answers
39 views

Extension method which this of type “Type” is null

I created an extension method for System.Type and I would like to unit test that method. Is this possible? Thanks! public static bool GetFoo(this Type self) { if (self == null) { ...
-2
votes
3answers
46 views

replace string by index of this string

Hello so i have a text file that looks like 45353 b 4353 b 54 54 b 5345 53453 and array list that looks like A B A how can i replace string b->A b - > b - > A ? OUTPUT SHOUDL LOOK like 45353 A ...
0
votes
0answers
34 views

Convert C# to PHP

I am accessing a webservice using SOAP and PHP. I can connect to a number of functions through to webservice API. But one eludes me. I have an example but it is in C#. I have tried to emulate the ...
0
votes
0answers
12 views

Merge several images into one

I have several images, every image placed in writablebitmap. Each images represent one layer, every image contain transparency. I need combine this images into one, combine algorithm: show first ...
0
votes
1answer
21 views

Get last id inserted on a table C#, ASP.NET

i need to get the last inserted id on a table using ASP.NET and C#. I dont need to put the data in a datagrid, only show the last id on a label. Select MAX(idBarco) From Comienzos, this is it right ...
-3
votes
4answers
35 views

How to sort 2 list's based on first list

I have 2 List List 1 and List 2 List<int> order = new List<int>() {1,9,3}; List<PointF> ptdPoints= new List<PointF>() {new PointF(20,10),new PointF(10,80),new PointF(60,30)}; ...
0
votes
0answers
22 views

RadioButton in Razor

i have this code (is a PartialView): @{ ViewBag.Title = T("View.PartialShipment.MIC.List").Text; int num = 1; } @Html.HiddenFor(modelItem => modelItem.Id) <tr> <td> ...
0
votes
0answers
9 views

How can I pass in a pointer to a pointer of a UInt16 array to a Marshalled function?

I'm attempting to send a pointer to a pointer of a UInt16 array to a marshalled function like so in C#: C++: int foo(Unsigned_16_Type** Buffer_Pointer); C#: [DllImport("example.dll")] ...
1
vote
0answers
13 views

How to disable multiple column sorting on a wpf DataGrid?

I need to disable multiple column sorting on a DataGrid. Is this possible? Thanks in advance.
2
votes
1answer
75 views

Stuck in an infinite loop iterating through properties in a C# class

I'm iterating through the properties of a C# class to compare the values with another instance. The concept seems simple and will work for what I'm trying to do. However, my foreach loop never ...
1
vote
0answers
24 views

lock performance cloning object or not

I have a DataTable that can contains a large number of DataRows; this DataTable can be accessed from several threads. Some threads can also change values into some rows. Actually there are some search ...
1
vote
0answers
13 views

C# linechart dynamicly databind

So i want to be able to create charts dynamicly for this i created the following class with a method called getChart() using System; using System.Collections.Generic; using System.Linq; using ...

1 2 3 4 5 32598
15 30 50 per page