|
|
Member Blogs
Member-driven content. Start a blog today!
Technology * Industry Trends * Science * Philosophy * Politics * Entertainment * Anything!
Member Blog Home Pages
Thoughts and opinions of the author.
The following members have blogs:
|
*** Read and Add Your Comments To Recent Blogs ***
Recently Updated
Recently updated blog topics (last 10).
| Member |
Title |
Updated |
Group >> KB Topic |
khemebuen
Progrida Global LLC
Rank: Cadet 2nd Year
Joined: May 2009
MB Articles: 0
KB Articles: 0
Location: Marietta, GA USA
|
Authored by
, Posted By khemebuen
With Extension methods you are able to add new methods to predefined types and objects without recompiling the base type or type.
As an example, I will extend the DateTime object and add two more methods to it:GetFirstOfMonth, and GetEndOfMonth.
The snippet below is a static class which extends two more methods of the DateTime class namespace ExtensionExample { public static class DateTimeExtensions { public static DateTime GetFirstOfMonth(this DateTime Value) { return new DateTime(Value.Year,Value.Month,1); } public static DateTime GetEndOfMonth(this DateTime Value) { return new DateTime(Value.Year, Value.Month, DateTime.DaysInMonth(Value.Year, Value.Month)); } }
}
to use this extension, all i have to do is include the namespace ExtensionExample.
then when a DateTime variable is declared, it will have the two methods i just extended DateTime t = DateTime.Today; Consolole.WriteLine(t.GetFirstOfMonth().ToString); Consolole.WriteLine(t.GetEndOfMonth().ToString);
|
5/12/2009 |
C# (Visual C# & VS.Net) >> OOP
|
| |
|
|
Authored by
, Posted By mprestwood
If you're still using Paradox for any of your business database applications, you need to put a plan together now for converting to another development tool or at least understand what the future is likely to hold. If you're a power-user or researcher working with data, stick with Paradox at least for now.
|
5/6/2009 |
Corel Paradox >> Tool Basics
|
| |
|
|
Authored by
, Posted By adamlum
Borland to sell Delphi, C++Builder, JBuilder, etc.
|
12/27/2008 |
Industry News & Trends >> Industry News & Trends
|
| |
|
|
Authored by
, Posted By wes
Although Windows includes Microsoft's Picture Viewer, it has its limitations. Here's a free replacement with some real horsepower.
|
12/11/2008 |
Systems Engineering >> Windows
|
| |
|
|
Authored by
, Posted By wes
Which databases Prestwood Software prefers - and why.
|
12/5/2008 |
DBA, Databases, & Data >> DBA & Data
|
| |
|
|
Authored by
, Posted By mprestwood
My thoughts on whether Paradox for Windows is a good solution for building web-based Internet solutions.
|
11/26/2008 |
Corel Paradox >> Tool Basics
|
| |
|
|
Authored by
, Posted By Wes
Microsoft plans to discontinue sales of Windows XP on June 30, 2008. Because XP is a tried and true OS, and because of numerous problems with Vista, many users and IT departments would prefer to stick with XP.
InfoWorld has an initiative to keep XP alive indefinitely.
You can help.
|
5/4/2008 |
Industry News & Trends >> IT Water-Cooler for Power-Users
|
| |
|
|
Authored by
, Posted By Wes
If you've used computers for more than a few years, you know that you don't wonder IF a hard drive will fail - you wonder WHEN.
It just happened to me - again. But this time it looks like the results will be pretty painless. The reasons?
* RAID Level 1
* Superb Hard Drive manufacturer warranty support
|
1/24/2008 |
Systems Engineering >> Non-Removable Storage Technology
|
| |
|
|
Authored by
, Posted By Wes
Here's a great marketing idea, cooked up, no doubt, by some MBA: Punish your customers for being your customers.
Sound crazy? Several well-known software and service vendors don't seem to think so.
|
12/27/2007 |
Industry News & Trends >> Industry News & Trends
|
| |
|
|
Authored by
, Posted By KBerry
Kim Berry was published today in the Letters
to the Editor section of the Sacramento Bee.
|
12/17/2007 |
American I.T. Workforce >> Off Shoring
|
| |
Recently Started
Recently started blog topics (last 10).
| Member |
Title |
Updated |
Group >> KB Topic |
khemebuen
Progrida Global LLC
Rank: Cadet 2nd Year
Joined: May 2009
MB Articles: 0
KB Articles: 0
Location: Marietta, GA USA
|
Authored by
, Posted By khemebuen
With Extension methods you are able to add new methods to predefined types and objects without recompiling the base type or type.
As an example, I will extend the DateTime object and add two more methods to it:GetFirstOfMonth, and GetEndOfMonth.
The snippet below is a static class which extends two more methods of the DateTime class namespace ExtensionExample { public static class DateTimeExtensions { public static DateTime GetFirstOfMonth(this DateTime Value) { return new DateTime(Value.Year,Value.Month,1); } public static DateTime GetEndOfMonth(this DateTime Value) { return new DateTime(Value.Year, Value.Month, DateTime.DaysInMonth(Value.Year, Value.Month)); } }
}
to use this extension, all i have to do is include the namespace ExtensionExample.
then when a DateTime variable is declared, it will have the two methods i just extended DateTime t = DateTime.Today; Consolole.WriteLine(t.GetFirstOfMonth().ToString); Consolole.WriteLine(t.GetEndOfMonth().ToString);
|
5/12/2009 |
C# (Visual C# & VS.Net) >> OOP
|
| |
|
|
Authored by
, Posted By Wes
If you've used computers for more than a few years, you know that you don't wonder IF a hard drive will fail - you wonder WHEN.
It just happened to me - again. But this time it looks like the results will be pretty painless. The reasons?
* RAID Level 1
* Superb Hard Drive manufacturer warranty support
|
1/24/2008 |
Systems Engineering >> Non-Removable Storage Technology
|
| |
|
|
Authored by
, Posted By Wes
Microsoft plans to discontinue sales of Windows XP on June 30, 2008. Because XP is a tried and true OS, and because of numerous problems with Vista, many users and IT departments would prefer to stick with XP.
InfoWorld has an initiative to keep XP alive indefinitely.
You can help.
|
5/4/2008 |
Industry News & Trends >> IT Water-Cooler for Power-Users
|
| |
|
|
Authored by
, Posted By Wes
Here's a great marketing idea, cooked up, no doubt, by some MBA: Punish your customers for being your customers.
Sound crazy? Several well-known software and service vendors don't seem to think so.
|
12/27/2007 |
Industry News & Trends >> Industry News & Trends
|
| |
|
|
Authored by
, Posted By Wes
If you're like me, and most techie types I know, you're something of a gadget collector.
I'm always on the lookout for new stuff that'll enhance my life in one way or another.
Here are a few recent finds.
|
10/8/2007 |
Industry News & Trends >> IT Water-Cooler for Power-Users
|
| |
|
|
Authored by
, Posted By Wes
An exciting, new grid computing project is underway to discover potential cures for several of the world's most devastating diseases: AIDS, West Nile Virus, and Alzheimer's disease. With virtually no trouble at all, you can be a part of it.
|
10/26/2007 |
Industry News & Trends >> Role-Based Tech Talk
|
| |
|
|
Authored by
, Posted By wes
If you've been around computing for any length of time, you know you can quickly spend a lot of money on those $60, five-pound reference books.
For just ten dollars more, you can get your hands on over 500 great training videos for Visual Studio .NET.
|
7/2/2007 |
C# (Visual C# & VS.Net) >> C#
|
| |
|
|
Authored by
, Posted By wes
Whether you're a total newbie to databases, and need of a good foundation, a seasoned pro that wants a little review, or a developer that wants to help educate his clients, a series of well executed training videos is a great way to go.
|
6/29/2007 |
DBA, Databases, & Data >> MS SQL 2005
|
| |
|
|
Authored by
, Posted By wes
Although Windows includes Microsoft's Picture Viewer, it has its limitations. Here's a free replacement with some real horsepower.
|
12/11/2008 |
Systems Engineering >> Windows
|
| |
|
|
Authored by
, Posted By wes
There are many, many useful web sites from which we developers can glean the information we need to keep up with new technology and trends.
|
6/26/2007 |
Industry News & Trends >> Industry News & Trends
|
| |
|