|
|
Stories recently tagged with 'ExtensionMethods'
|
|
submitted by
djsolid
12 days, 2 hours ago
weblogs.asp.net — Many times when i develop a user control i have the need to add some javascript to the header of the page. But the header doesn't have a method where you can add script and RegisterStartupScript inserts the script at the bottom of the page.
So i thought let's create an extension method... read more...
1 comment
|
category: ASP.NET | Views: 5
|
|
tags:
ExtensionMethods, ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
crpietschmann
28 days, 9 hours ago
hsidev.wordpress.com — Yesterday Karl Seguin announced a new .NET Extension Library. One of the really interesting pieces of the library is a streamlined approach to a simple dictionary imagecache, which is similar to the one described in another interesting looking utility library called ShadeTree. Recently, Ayende Rahein reviewed another .NET utility library called Umbrella, which looks like a pretty wide and deep set of utilities. As I am about to create a new solution to consolidate the utility functionality we use across our various projects, it got me thinking it might be time to pick an established (or growing) library from the community and try to contribute any missing pieces we need for our own projects. read more...
add a comment
|
category: CLR | Views: 14
|
|
tags:
Library, ExtensionMethods, CLR | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 1 month, 1 day ago, submitted by
whoisvaibhav
1 month, 1 day ago
blog.gadodia.net — This is the first time I have envied VB over C#. Here's a thing that is useful and you can do in Vb.Net, but not in C#. read more...
2 comments
|
category: C# | Views: 651
|
|
tags:
ExtensionMethods, VB.NET, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 1 month, 2 days ago, submitted by
crpietschmann
1 month, 4 days ago
pietschsoft.com — Extension Methods are one of the coolest features that have been added in .NET 3.5. I've heard arguments that there is no reason to use them, and the only reason Microsoft added them is to enable the ability to buid LINQ. Well, I do not entirely agree with that statement; in fact, I have found a cool way to use Extension Methods to enhance the System.Enum object since it cannot be inherited. Even though Enum can not be inherited, it can be extended using Extension Methods. Here's the code to an Extension Method that extends the LocalizationMarket Enum with the ToDescriptionString() method that returns the DescriptionAttributes value for the given enum value. read more...
3 comments
|
category: Tips & Tricks | Views: 396
|
|
tags:
.net3.5, C#, ExtensionMethods, Tips, Enum | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 1 month, 2 days ago, submitted by
crpietschmann
1 month, 4 days ago
pietschsoft.com — Extension Methods are one of the coolest features that have been added in .NET 3.5. I've heard arguments that there is no reason to use them, and the only reason Microsoft added them is to enable the ability to buid LINQ. Well, I do not entirely agree with that statement; in fact, I have found a cool way to use Extension Methods to enhance the System.Enum object since it cannot be inherited. Even though Enum can not be inherited, it can be extended using Extension Methods. Here's the code to an Extension Method that extends the LocalizationMarket Enum with the ToDescriptionString() method that returns the DescriptionAttributes value for the given enum value. read more...
3 comments
|
category: Tips & Tricks | Views: 396
|
|
tags:
ExtensionMethods, C#, .net3.5, Tips, Enum | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
kalyanms1
1 month, 6 days ago
techbubbles.com — It is one of the new feature introduced in C# 3.0 “As the name implies, extension methods extend existing .NET types with new methods.”
Here i am going to extend the String type to write an extension method.
Example Adding a IsValidEmailAddress method onto an instance of string class: read more...
add a comment
|
category: C# | Views: 7
|
|
tags:
ExtensionMethods, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
deepakkapoor
1 month, 20 days ago
deepakkapoor.net — .NET Framework provides String.IsNullOrEmpty() method which return true if the string is null or empty. It does not however take care of a string which only contains spaces. Often while persisting data we do not want to persist just empty strings. In past I have made this check before I let my data pass through. Today I thought of creating an extension method to do the same for me. read more...
add a comment
|
category: C# | Views: 20
|
|
tags:
ToString, ExtensionMethods, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
CharlieCalvert
1 month, 23 days ago
blogs.msdn.com — There are a few scoping rules that you must keep in mind when using extensions methods. Problems with scoping and extensions methods are rare, but when you encounter them they are quite vexing. read more...
add a comment
|
category: Linq | Views: 15
|
|
tags:
ExtensionMethods, LINQ | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 2 months, 7 days ago, submitted by
TroyMG
2 months, 8 days ago
squaredroot.com — A couple days ago a reader sent in a question regarding how to use SSL with the MVC framework. Specifically the reader wanted to know the easiest way to make an Ajax call to a HTTPS page from a non HTTPS page. The tricky part here is to do so without hard-coding any URLs, so I whipped up a few extension methods that should make this a bit easier. read more...
add a comment
|
category: ASP.NET | Views: 122
|
|
tags:
ExtensionMethods, ASPNETMVC, mvc.net, ASP.NET, MVC | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
xtremebiz
2 months, 30 days ago
codeforeternity.com — This post explains about the Single and SingleOrDefault extension methods of LINQ, possible exceptions which can be thrown, and provides code examples both in C# and VB.NET along with code comments. read more...
add a comment
|
category: Linq | Views: 109
|
|
tags:
VB.NET, ExtensionMethods, 3.5, LINQ, .net3.5 | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
Jemm
3 months, 1 day ago
weblogs.asp.net — IndicesWhere: Gets the indices where the predicate is true.
TakeEvery: Take items from 'startAt' every at 'hopLength' items.
Distinct: Gets distinct items by a comparer delegate
and Gets distinct items by comparer and hasher delegates (faster than only comparer).
read more...
add a comment
|
category: C# | Views: 18
|
|
tags:
ExtensionMethods, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
fquednau
3 months, 15 days ago
realfiction.net — Several blog posts have come up on extension methods that have in common a check for null on the extension target. This now allows to call methods on null references. I would like to hear opinions if this is good or bad or a non-issue... read more...
add a comment
|
category: C# | Views: 4
|
|
tags:
Patterns, ExtensionMethods, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
|

Sponsored Link: www.carlist.ie
Ads via The Lounge
|