Using Protobuf-Net, I see that it does not seem possible to deserialize a class without having a parameterless constructor or I may be missing something?
I don't want some of the classes with a parameterless constructor. Is there some kind of attributes that I could use or some other technique?
...
I already made the background transparent but there is still some part left from the group box. How do I make those transparent also?
The blank line are what I want it to be transparent. It should give you the picture of what I want. Thanks.
And don't even ask what are the password for, all of them are just dummies :)
If you want to ...
Hello, I'm new to NHibernate and Fluent NHibernate.
Assuming I have a situation like the following
Table Activities (uniquidentier ID, varchar ActivityName)
Table ActivityParameters(uniqueidentifier ID, varchar ParameterName,
varbinary(8000) ParameterValue)
and the following class
public static Acivity
{
.......
public vi...
Anyone know an equiv?
Currently I'm doing..
Dim myUsers As New MembershipUserCollection
Dim myUser As MembershipUser
Dim RoleUsers() As String
RoleUsers = Roles.GetUsersInRole("User")
For Each x As String In RoleUsers
Dim roleUser As MembershipUser
roleUser = Membership.GetUser(x)
If Not roleUser Is Nothing Then
m...
Here is the setup:
We have a common library that I've
developed that is used by all
developers on any new applications or
more than trivial changes to old
applications. When we make a change,
we up the minor version number (2.0 to
2.1) if the API is not broken, but if we break the API then we up the major
version number...
I've decided to use SQLite for my personal development project, because it just sprung up out of my computer seemingly of its own volition and I wanted to learn more about it. The problem is, I'm starting to really miss a lot of the features I'm accustomed to with heavyweight RDBMS's: stored programs, constraints, DRI, complex datatypes ...
Hey Everyone --
If I want to compile my LINQ->SQL classes into a DLL to provide to my developers, how can I make it so that they can still hook into the various entity partial methods (OnValidate, for example)? I know that you cannot implement partial methods on a compiled assembly, but any suggestions on how I can extract this behavio...
I wonder what is processed first: if the code placed in the aspx part (using server tags <% %>) or the code behind, because I place a variable that is filled in the Page_Load in the aspx between server tags and I'm not getting anything when there is a value.
Anyone can point me in some directions like an article talking about the page l...
I have a thread that connects to two network resources. Each time I attempt a connection, it can take 10 seconds for a reply.
void MyThread()
{
//this takes ten seconds
Resource r1 = MySystem.GetResource(ipAddress1);
//this takes ten seconds
Resource r2 = MySystem.GetResource(ipAddress2);
//do stuff with ep1 and...
Hey all,
I'm running the latest WSO2 ESB and I was wondering how can I implement a security layer over the existing .NET web services?
Through a proxy service maybe? Kinda lost with all the extensive documentation.
Thanks in advance!
...
I want to write my own global snippets tool for Windows XP and higher. This would be an always running in the background tool that would pop-up on a globally-defined hotkey, allow me to select a snippet with substitution arguments, and then paste the expanded snippet into the text input of whatever control I had been in when activated i...
I'm asking mostly out of idle curiosity.
When using TestComplete, I've noticed I can point my script at an arbitrary running .NET application, grab a control, reflect on it, and even call methods on it. I have no idea how they pull this off. This isn't simple UIAutomation, as far as I can tell, since I can grab private fields. Also, ...
Here's the poop; I am working on a game for an assignment for my college courses and am being forced, essentially, to use C#, so on my laptop I am using Monodevelop with Debian Linux. Trouble is that GTK# apps won't run on Windows unless the dependencies are installed, which is a problem as my Uni's computers don't have that. My question...
I am trying to do simple data binding to an instance of an object. Something like this:
public class Foo : INotifyPropertyChanged
{
private int bar;
public int Bar { /* snip code to get, set, and fire event */ }
public event PropertyChangedEventHandler PropertyChanged;
}
// Code from main form
public Form1()
{
Initiali...
Hi, this question is going to show my lack of understanding of the expected behavior when implementing/using INotifyPropertyChanged:
The question is - for binding to work as expected, when you have a class which itself implements INotifyPropertyChanged, that has nested properties of type INotifyPropertyChanged are you expected to intern...
This question may reveal my ignorance as a Programmer but I won't know if I don't ask.
The BLL/DAL I inherited returns DataTables for everything. Address, Phone, CountyList, StateList, etc...
My issue is that on a Given page, say Member, there is multiple DataTables being pulled down but the page gets updated as One.
Is there a...
Hello,
I am having to reinstall .NET Framework from 1.0 and up, however, during the install of 1.0 I am asked where do I want to put the files. I am not sure, but in my researching, would I be correct to put them here:C:\Windows\Microsoft.Net\Framework\v1.0.3705
I can't get this computer online because the system owner deleted some fil...
I am trying to update some object properties by calling UpdateModel(myObject, new[] { "stringprop1", "stringprop2", "intprop"}).
This is failing for an unknown reason. Several string properties are updating successfully. When I try to update an int property it fails. The new int value is being sent from an html select list on the view.
...
I am trying to initialize my controls in Silverlight. I am looking for something similar to Form_Load event, which gets triggered when the form loads first time.
The Loaded event in Silverlight gets called quite early, even before the control gets displayed in UI. I want to intialize prior to the UI rendering of the control the first ti...
I currently have two entities in LLBLGen and would like to merge them together to output to a table to be used in a DevExpress GridControl in the same way that 2 tables joined together with an inner join.
Does anyone know how to do this with LLBLGen?
...