Format:
Recent snippets matching tags of Extension methods
namespace NUnit.Framework { public static class AssertionHelpers { public static void WithMessage(this Exception ex,string expectedMessage) { Assert.AreEqual(ex.Message, expectedMessage); } } }
446 Views
no comments
// Extension method for retrieving a page from a PageReference // For example: // PageData parent = CurrentPage.ParentLink.GetPage() public static PageData GetPage(this PageReference link) { if (link==PageReference.EmptyReference) return null; return DataFactory.Instance.GetPage(link); }
219 Views
1 comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
