15,889,839 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ankush Bansal (Top 8 by date)
Ankush Bansal
7-Jul-13 10:46am
View
Looks like something is fishy in your datasource... can you post some code ?
Ankush Bansal
28-Jun-13 6:53am
View
Reason for my vote of 5 \n great work amit... have my 5 for it!!!
Ankush Bansal
9-Sep-12 13:12pm
View
Hi Mattias,
Have my 5 for the detailed answer. I appreciate your comments on refactoring and untit testing, however my question still remains open:
Is the protected "_field" of Base, a bad usage, given that both Base and Derived are internal and would never be used outside of the assembly? And what if protected member is a complex data type?
Ankush Bansal
9-Sep-12 13:09pm
View
Hi,
So, do you mean to say that a protected field of primitive type is fine, however a protected field of complex data type is not recommended? If yes, can you please suggest some examples of why you think so?
Thanks
ankush
Ankush Bansal
9-Sep-12 12:58pm
View
Hi,
Recently in code review I got a feedback that initializing a protected field as shown in example 1 is dangerous and highly discouraged.
To be very honest, through this question, I am trying to convince myself that use of protected property is not as bad as its portrayed.
Thanks,
ankush
Ankush Bansal
9-Sep-12 12:51pm
View
thanks for highlighting the mistake!! I've corrected it now.
Ankush Bansal
3-May-12 5:32am
View
Thanks for vote of 5!! appreciate that
Ankush Bansal
14-Oct-11 7:47am
View
no use sir, i don't see any messages beyond march 2010 in my m/c event log. so its possible to not have logs of login and logoff. I need a robust way of finding the timings. Windows must have some place to log this info. may be somewhere in registry.
Show More