Search

You searched for the word(s): userid:427561

Matching Posts

  • Accessing member variable directly vs through property

    Accessing member variable directly vs through property Friends, I am asking this question with performance as main concern. But I would like to know other possible advantages / disadvantages for both approaches. The question is: Since properties are converted to methods in IL, could there be significant performance penalty if properties are called instead of accessing fields directly (from within class)? I am designing a transformation class (PersonalizationConstructor) whose whole purpose is to
    Posted to C# (Forum) by nmahesh567 on 11/16/2009
  • Re: Accessing member variable directly vs through property

    Below is the code sample I could be using. Now, Are there any ways to optimize this scenario or better pattern? class MainSite { protected virtual string ProductFilterCriteria { get { return _source["ProductFilterCriteria"]; } } protected virtual string Abc { get { return _source["Abc"]; } } protected virtual string Def { get { return _source["Def"]; } } ..... many properties } class VirtualSite : MainSite { protected override string ProductFilterCriteria { get { return
    Posted to C# (Forum) by nmahesh567 on 11/16/2009
  • Re: Achieving State like pattern without having +3 entities?

    Thanks for the reply. I meant State- like pattern in the sense that, and as mentioned in the tilte of this post, I wanted to avoid creating 3 entities to solve this problem interface / abstract class and then two instances of base. As I mentioned, actually I am looking for alternate solution of this. A User Control class having (small) class hierarchy inside class, does not make sense actually.
    Posted to C# (Forum) by nmahesh567 on 8/12/2009
  • Achieving State like pattern without having +3 entities?

    Here is the design problem in pseudo example: It is ASP.NET User control (UC) which uses the "Food" object as data source and this object has property FoodType - "Veg" || "Nonveg". The user control changes UI display depending upon FoodType property. In code-behind class of User Control, some methods have same if/then/else condition: if(Food.FoodType == "Veg")... else ... Here, I would like use State-like pattern such that code-behind class of User Control
    Posted to C# (Forum) by nmahesh567 on 8/11/2009
    Filed under: .Net, algorithm, Asp.Net 1.1, c# 2005 Gridview, .net 2.0 c#, c# 2008 LINQ, .Net 2.0 c# Exception, C# in Asp.NET, C# .NET Genetic Algorithm Program Code, C# code, C# 2.0, C# 2005, ASP.net2.0, asp.net 2.0 C#, <C#>, .Net 2.0 c# .Net 2.0 sp2, .Net 2.0 c# and Encryption, c# 3.5, ASP.net C# Object Reference, ASP.net 3.5, asp.net 2.0 using C#
  • Why do you mark post as answered when it is not?

    Hi, It must be automated to mark the post "Answered" once it gets *ANY* reply. If not it is then really frustreting. Just because SOME reply was added, it should not be marked as "Answered". Most of the post I have read or posted are not really solved and still they are marked as "Answered"!!! I know one can change status later to Not answered but why one has to do that? Let poster mark it answered once he thinks that he got the answer. I feel that many GURUs filter
    Posted to Feedback on this website (Forum) by nmahesh567 on 8/9/2009
  • Re: ASP.NET framework 2.0 Website uses .NET 3.0 framework DLL

    > When you run your mixed app, it should load up the DLLs specified in web.config in web.confgi? > .NET 2.0, 3.0 and 3.5 sit on the CLR. sit on the CLR? I did not understand this. > Does that clear things up a little? NO
    Posted to Getting Started (Forum) by nmahesh567 on 8/9/2009
  • Re: Why do you mark post as answered when it is not?

    Thank you. I understand that usually OPs do not mark post as answered. But do you want one to check periodically to just see if post is marked as answered? For me at least, this has been frusteting to see that my post got maked as answered even my post got just a single reply and by no means it provides any answer to my question. E.g. See this post. Its funny when one view this post thining that it is answered. I would suggest to provide OP opportunity and aware him that this post is going to be
    Posted to Feedback on this website (Forum) by nmahesh567 on 8/9/2009
  • Re: Why do you mark post as answered when it is not?

    Really, thanks a lot for your answer and time. > In fact, it is rarely a problem, much less than 1% of posts. That's good to know. It seems I am thinking this as a huge problem.
    Posted to Feedback on this website (Forum) by nmahesh567 on 8/9/2009
  • ASP.NET framework 2.0 Website uses .NET 3.0 framework DLL

    We are developing ASP.NET site in VS.NET 2005 . This site is will be hosted on server which has .NET 3.0 installed and in IIS, ASP.NET 2.0 would be selected under ASP.NET tab. We would use external DLL which is being developed in VS.NET 2008 with .NET 3.0 as taraget framework. Here they are using .NET 3.0 / C# 3.0 features such as Lamda expressions. Now, the question is, 1) If we were not using this external DLL (.NET 3.0 as taraget framework), which .NET framework version it would use for this site
    Posted to Getting Started (Forum) by nmahesh567 on 8/8/2009
    Filed under: "asp.net 2.0" "visual studio", .NET 2 DLL in 1.1
  • WCF – Caching and data structure

    Hi, The WCF service is supposed to store very large data in memory (array of Product objects). The data is coming from database after converting to Product objects and just to skip database hits, we are planning to cache these large number of Product objects at WCF level. There could be 200,000 objects of Product class to be cached. Performance is the very critical criteria in requirements and since it is 64 bit Win 2008, having enough memory for this caching. My questions are: 1) What are the options
    Posted to Getting Started (Forum) by nmahesh567 on 2/22/2009
Page 1 of 21 (208 items) 1 2 3 4 5 Next > ... Last »