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 (5) | c# jobs

0
votes
0answers
7 views

Retrieve data from third table

This question is irritating to ask, as i haven't got the hang of using middle tables in sql yet. But i'm in a time rush so i've chosen to ask anyway. I wish to combine these sql codes so i can ...
0
votes
0answers
9 views

Why is NHibernate fetching extremely slow?

I'm building an ASP web forms app with Fluent NHibernate v2.0.50727 to SQL server backend. For some reason querying tables with small data (~14 rows) takes seconds. The maps are all simple: Id(x ...
0
votes
0answers
7 views

Change text value in a click event? [Windows Phone 7] C#

I have this text inside a XAML that I want to change from "123ABC" to "456DEF". <TextBlock x:Name="driverStatusValue" HorizontalAlignment="Left" Margin="205,45,0,0" Grid.RowSpan="2" ...
0
votes
0answers
11 views

What distinguishes CCITT .tif files from jpeg compression .tif

I've written a code to detect corruption of jpeg files by comparing the last two bytes if they have the jpeg marker if (buffer[0] == (byte)0xff && buffer[1] == (byte)0xd9) { validJpeg = ...
-2
votes
1answer
16 views

how to get email using facebook graph api in c#

string accessToken = "CAAIWmVeKJkgBAMhGP2wLuuoIbZCCC8uaA7no6LxJgjqpCCxP7X1YQzCpeJQXbc095BTQDlkZAAyVhnVyZBNMYhgVXZCZAbPrptZB1SWMJZBFBmdGWY8Q6IiXnZCpzaJnS6ZBJC9Im2VYMf4dWi8a4sHCQTV5dxIucTxIZD"; ...
0
votes
1answer
15 views

c# set a program to launch at startup using registry and a checkbox to modify the option

I know how to tell the registy to run my app on startup. There are a lot of threads about it. I used this one: How do I set a program to launch at startup. The problem I face is: I give the user the ...
2
votes
2answers
48 views

Preferred way to set default values of nullable properties?

I'm in a dilemma. The (reduced) task is to redesign the following data holder class class Stuff { public String SomeInfo { get; set; } } to accommodate the demand that null mustn't be returned. I ...
1
vote
0answers
11 views

Ambient Context Where Members Have Dependencies

Hi this is probably just a lack of thought but I can't see how to solve this one "nicely". I have a component responsible for auditing that is used across the system, such: public class ...
0
votes
0answers
10 views

WCF ServiceHost throws excption when UI client exits

I am creating a a service which I am hosting in a Console Application. It contains a single method to get data from the service, and a couple of methods that can be executed on the server. In order ...
1
vote
0answers
26 views

What happens in BeginProcessRequest()?

We are using NewRelic to provide server-side application traces. We have noticed that some of our applications consistently spend about 100ms in the method ...
0
votes
0answers
13 views

Get Win 32 window from Wnd Proc call

In my wpf project, i am hosting a win 32 window with listbox control. In this, is it possible to get that Win 32 window in Message Hook event handler? var view = new Win32Host(source.Handle, ...
0
votes
1answer
17 views

Lost of text color in ListBox on Windows XP

<ListView Grid.Column="0" Width="230" MaxWidth="250" ItemsSource="{Binding FiltredOrders}" SelectedItem="{Binding SelectedOrder}" DisplayMemberPath="StringForListBox" ...
0
votes
3answers
31 views

Formatting Date of a collection in an Anonymous Object

I got a business layer which returns an anonymous object which has a collection of rows which have dates. I want to get regional formatting of the dates, but I don't want to pass the regional setting ...
0
votes
1answer
25 views

Write HTML content to word document using C#

I know there are plenty of answer exists regrading this question, but what i am looking for is a proper guidance to achieve my task. Please help. Problem: I am dynamically generating a word document ...
0
votes
2answers
33 views

How can I reduce code duplication in two classes that extend different base classes?

I have a class that has to extend Activity, e.g. BaseActivity : Activity { } and another class that has to extend ListActivity, e.g. BaseListActivity : ListActivity {} // ListActivity in turn ...

1 2 3 4 5 31564
15 30 50 per page