This is just something I was thinking as I was learning on Attributes and I was using the INotifyPropertyChanged too much, is just and Idea and I would like to hear some opinios about it.( I know this would require some work on the compiler and not on the cosumer side)
Since INotifyPropertyChanged is used with the same Pattern most of t...
I have a .NET DLL containing functions that I can use in PHP. Though various PHP libraries are available, but I just wanted to know whether PHP supports libraries written in other languages? In future if I write a library in Ruby and want to use it with PHP, is it possible?
...
Let's say that I have a module that has a Queue in it.
For other entities to Enqueue, they must go through a function:
public sub InsertIntoQueue(Obj)
MyQueue.Enqueue(Obj)
end sub
If I have multiple threads running and they want to call InsertIntoQueue(), is this considered thread safe?
I am under the impression that there is on...
I'm getting the following Exception: There was an error reflecting type 'ValoradorHC.estruturas.dispoHotel'. when i try to Serialize my class
My code is:
Public Function getXMLdeObjecto(ByVal obj As Object)
Dim ser As New XmlSerializer(obj.GetType())
Dim sb As New System.Text.StringBuilder()
Dim writer As New S...
Here's the scenario:
A Silverlight app (just a wireframe) that is hosted on an html page (no aspx/server side solution, just a client side html page loaded from c:\somefolder\mysilverlight.html), actually it is hosted in a WPF app using WebBrowser control.
The WPF app needs to inject Silverlight xaml in to the Silverlight wireframe dyn...
Do you know any good book about the workings of the CLR, the .NET Framework and CIL as opposed to any specific .NET language?
...
Using ASP.NET MVC + jQuery:
I need to use some values owned by the server in my client-side JavaScript.
Right now, I've temporarily got a script tag in the actual view like this:
<script>
var savePath = '<%= Url.Action("Save") %>';
</script>
But I want to move it into something cleaner and more maintainable. I'm thinking of somethin...
We have a website using ASP.NET MVC and SQL Server 2008 and we are using the default transactionscope isolation level which is Serializable. But it makes the application unusable if any transaction is opened as we have a table that being used by almost everything and it runs like
select * from table1 where id = 1
So I think it locks ...
Hi,
I cant understand why sending parameters to insert function works slow in .net compact framework.
Forexample following code inserts within 2 seconds
cn = New SqlCeConnection(strstring)
cmd = New SqlCeCommand
Dim rs As SqlCeResultSet
cmd.Connection = cn
cmd.CommandType = CommandType.TableDirect
cn.Open()
...
What is PLinq? And what is the difference between this and the normal Linq? I saw this word many times, so I googled it and found that it is a new .NET Framework 4 feature, but I didn't really understand what it is...
Thanks.
...
I put my csproj for my web service in sourcesafe.
Now inside of the text of the csproj there is a line stating that the webservice is located at
localhost/something
is there a way to not store this info in the csproj so users can move this web service where ever they want?
...
Hi,
We have a 2 x Quad Core Xeon server with 8GB of RAM and Windows Server 2003 Enterprise installed on it. We installed our application server which is based on .NET Framework 3.5 on it. The server uses SQL Server 2005 as its database server.
When we installed the application server, it used to have ultra fast performance and everythi...
A very similar question has also been asked here on SO in case you are interested, but as we will see the accepted answer of that question is not always the case (and it's never the case for my application use-pattern).
The performance determining code consists of FileStream constructor (to open a file) and a SHA1 hash (the .Net framewo...
Hi,
I have an error with my Xaml files in a WPF application. I'm not able to see my control in the Visual Studio designer or in Blend. But, the application compiles and is running perfectly.
In Blend, it says that there's an invalid Xaml and the error just make no sens at all, but when I close the control there's no more error.
In Vi...
Many of our system tests are written in a BDD style, and we make decent use of inherited behaviours to minimise duplication, for example this might be a basic hierarchy for purchase tests.
class BehavesLikeSuccessfulPurchase
class BehavesLikePurchaseWithValidCreditCard : BehavesLikeSuccessfulPurchase
In this case the BehavesLikeSucces...
Is there a way, even a very sneaky way, to change the time that a DateTime.UtcNow returns for a process or thread?
The SetSystemTime() win32 API call will change the time on the entire system. I've used this before but I would like a method that is less evil to other processes running on the system. Messing with the time is bad kungfoo ...
What's the best way to use a database to drive the contents of the [RequiresRoles] attribute?
[RequiresAuthentication]
[RequiresRoles("Admin")]
public IQueryable GetSuperEmployees()
...
I'm going to make a DLL Library that'll alow developers to search and access IMDB movie pages.
How should I handle the freezing in the GUI, should I use async methods, or should I allow a dev to manually create a thread for using our DLL?
...
Is there ever a situation where I should do the following in .NET instead of using a property with read/write capability?
private S as string
public function GetS() as string
return S
end function
public sub SetS(byval NewS as string)
S = NewS
end function
Do properties simply provide a more efficient way for doing the same...
How can I deploy a ClickOnce application from "Publish" in Visual Studio 2008 and only keep the latest publish in the "Application Files" ?
I tend to do many "Publish"'ings.. and after a while my distribution server is full of old versions.
...