.net

WebSphere MQ .NET API

All, Is there a WebSphere MQ .NET API I can download ? I am basically trying to write a C# app that listens for messages in an MQ queue. Thanks, Marios ...

decorator pattern

I have a program that converts currency using a specific design pattern. I now need to take my converted result and using the decorator pattern allow the result to be converted to 3 different formats: 1 - exponential notation, rounded to 2 decimal points. using System; using System.Collections.Generic; using System.ComponentModel; using...

Azure table storage: maximum variable size ?

I will be using the table storage to store a lot of blob names, in a single string, appended to each other using some special character. This string will sky rockets pretty soon. But is there a maximum size to the length of a property for a particular entity ? in my case the string ? ...

What function(s) call Control.ShouldSerializeVisible

Does anyone know where Control.ShouldSerializeVisible is called from? The Reflector does not show it used by anything and google came up empty. ...

NHibernate MySQL Enum

I am trying to access the "MYSQL" database tables to create a GUI for adding users and privileges. Doing this, I have run into my first NHibernate problem. How do i map MySQL Enum's to a C# Boolean? Or if not possible then to at least a Enum? The database fields are delcared as enum('N', 'Y') These are all of the privilege fields i...

castle windsor container not wiring properties correctly

I have a class that i want to instantiate thru castle in configuration. public class MyMappings : IMappings { Mapping FirstMapping { get; set; } Mapping SecondMapping { get; set; } OtherType ThirdMapping { get; set; } OtherType FourthMapping { get; set; } Mapping FifthMapping { get; set; } OtherType SixMapping { ...

CssClass duplicates on an UpdatePanel update

I've got a simple user control in my ASP.NET Webforms project which inherits from the LinkButton. It's got a property to change the size, which just adds some predefined CSS classes to the control. Protected Overrides Sub CreateChildControls() Dim SizeClass As String = String.Empty If Size = SizeEnum.Large Then SizeClas...

.Net Reflection - Calling unexisting methods

Lets say i call method M1 on class A using reflection. The method does not exist. Is there any way to put a handler on class A that says, "someone is trying to execute method M1"? Or Is it possible to add a method dinamically to a class? I want to add a method M1...Mn that always does MyStaticClass.DoAction("M1...Mn"); Something li...

Implementing DllImport using CodeDom

Can anyone please point me in the direction on how to implement a DllImport statement (say for LoadLibrary) using CodeDom? It's not the end of the world if I have to implement it using a code snippet approach, but thought there might be a better (official?) way. ...

Can ListViewItem style property be reset from ListView

Can something like this be done through attributes or templates (pseudo xaml :)) <ListView ListViewItem.Style={x:Null}> </ListView> This question is not just about ListView, it's about all ItemsControl's classes, is there a way to set or reset style for item's from container. ...

Will a brush be disposed if created in the call to a method

below is a fragment of code that is found in my paint method. I am not sure what it is called when I create an object such as the brush this manner, but never the less will it be disposed of properly, or do I need to be concerned about it? g.DrawString("12", _ContentFont, new SolidBrush(Color.Black), new PointF(25, 25)); vs2008,c#, .n...

Secrets of delivering .NET size large products?

In software companies I have seen it's really hard to work on very large products where everything depends on everything else. For instance Microsoft works on C#, F#, .NET, WPF, Visual Studio where these things are interconnected. I don't know how many people are involved, but if it's in 100s, how do they keep in sync with everything, s...

Returning a collection of objects from a webmethod

How do I return a collection of objects from a webmethod? And can this collection of objects be of different types - say of these 3 classes, private class ClassA { int A1; int A2; } private class ClassB { int B1; } private class ClassC { int C1; } ClassA objA = new ClassA(...); ClassB objB = new ClassB(...); ClassC objC = ne...

.NET WindowsForm - TabPage GotFocus Event

This page indicates that TabPage has a GotFocus event, but in Visual Studio 2008 I don't see that option on the TabPage (it says it is inherited from the control, i.e. the TabControl). What event would I use to write some code that runs each time a user clicks on a different tab? Would I use the GotFocus of the TabControl - but in tha...

make desktop sms application using blackberry

hey all, I have to make a SMS sending application in .NET, which uses the attached Blackberry handset(blackberry tour 9630 to be precise) to send SMS. I have never worked on smartphone application development, so want help in doing this. I searched SO for an answer and found one question, but its in java and i think that code would run o...

Is there anything like ISerializable that works for XMLSerializer?

I've got a class which implements it's own (de)serialization via XLINQ, and I'd like to have clients of my class which attempt to XMLSerialze my class to have my XLINQ method called instead. Is that possible? ...

a linq query to find something

Hi, I have object A which contains multiple instances of object B, which in turn contains multiple instances of object C. I need to write a function which, given Object A needs search through instances of objects B and objects C and find a particular object C. How would I do this using LINQ? ...

Are EntityFramework generated Entity Persistence Ignorance

So I'm starting to look into EF and POCO. From my understanding, the entity generated by EF is not pure POCO since it inherit from EntityObject. But are they PI? It seem to me that they don't have any persistence awareness in them, or there is something in the EntityObject that makes them PI? ...

make desktop sms application using windows mobile 6.1

hey all, I have to make a SMS sending application in .NET which uses a connected CDMA based Windows mobile 6.1 device to send sms. The problem is I have never worked on smartphone app development so don't have any idea about how should i go about it. Couldn't find anything useful on SO or elsewhere, so please guide me in the right direct...

Convert SQL with Inner AND Outer Join to L2S

I need to convert the below Sproc to a Linq query. At the very bottom is what I have so far. For reference the fields behind the "splat"(not my sproc) are ImmunizationID int, HAReviewID int, ImmunizationMaintID int, ImmunizationOther varchar(50), ImmunizationDate smalldatetime, ImmunizationReasonID int The first two are PK and FK, r...