Account: (login)

More Channels


Are you the publisher? Claim this channel

Search in 125,942,014 RSS articles:

Channel Description:

Knowledge is power

Latest Articles in this Channel:

  • 07/27/11--11:17: Applying aspects to 3rd party assemblies using PostSharp (chan 1291347)
  • [Related Article: Introduction to Aspect Oriented Programming and PostSharp] There is undocumented functionality in PostSharp 2.1 (2.1.2.3 or higher) that allows us to apply aspects to assemblies that we don’t have the source code for. I’m going to show you how this works, but first I have state that this functionality is undocumented because it [...]

    programmersunlimitedprogrammersunlimited

    DummyApp-ILSpyDummyApp-ILSpy

    kick it on DotNetKicks.comkick it on DotNetKicks.com

  • 08/01/11--12:28: PostSharp: Why are my arguments null?! (chan 1291347)
  • I see this question a lot. The developer has created an aspect and when they are stepping through they are seeing that the advice method arguments are null. The most common example of this is the MethodExecutionArgs.Exception. We can easily reproduce this “issue”. Example If you compile this code and step through it, the args [...]

    programmersunlimitedprogrammersunlimited

    PostSharpNullArgs1PostSharpNullArgs1

    PostSharpNullArgsILSpy1PostSharpNullArgsILSpy1

    PostSharpNullArgs2PostSharpNullArgs2

    kick it on DotNetKicks.comkick it on DotNetKicks.com

  • 08/16/11--10:57: Exposing internal methods in 3rd party assemblies for external use (chan 1291347)
  • To start out, I’m going to state that I don’t condone this, but if you need it then you need it. I expect to get some nasty comments about pattern violation this or encapsulation that so go ahead and send them in. This is just an extension of my previous post about modifying 3rd party [...]

    programmersunlimitedprogrammersunlimited

    kick it on DotNetKicks.comkick it on DotNetKicks.com

  • 01/18/12--13:02: Learn T4 with my PluralSight course (chan 1291347)
  • My new course on T4 (Text Template Transformation Toolkit) has gone live and it’s ready for your viewing pleasure. If you have any feed back, please send it to me. T4 Templates on PluralSight.com This course introduces T4, Microsoft’s code generation tool that comes with Visual Studio. The Text Template Transformation Toolkit dynamically produces text [...]

    programmersunlimitedprogrammersunlimited

    dustin-davis-v1dustin-davis-v1

  • 01/24/12--10:34: Indexing DataTables (chan 1291347)
  • That’s right, I’m still using DataTables. Why? Because they best fit the requirements for what I am doing. I’m also taking advantage of parallel processing via the TPL. A lot of the operations I need to do would be much easier via PLINQ and POCO’s such as joins, grouping and searching. Because I’m working with [...]

    programmersunlimitedprogrammersunlimited

  • 01/24/12--14:48: Change Request Pattern – Parallelism and non thread safe collections (chan 1291347)
  • My current project makes heavy use of DataTables and parallel processing via the TPL. DataTables are not thread safe and really bite the dust hard when asked to do more than one thing at once. My project breaks up operations that need to be performed on a DataTable into groups that can be executed concurrently. [...]

    programmersunlimitedprogrammersunlimited

  • 01/26/12--11:55: DataTables != Thread Safe (chan 1291347)
  • The title of this post might seem really silly considering MSDN specifically says they aren’t thread safe, but there’s more to it than that. It says DataTables are not thread safe for WRITE operations which is a major ‘”Duh” statement, but in reality they are not safe for some read operations. I’ve been having some [...]

    programmersunlimitedprogrammersunlimited

  • 01/27/12--12:02: PostSharp with projects targeted at x64 (chan 1291347)
  • I’ve been working with a project that processes a large set of data so I’m targeting x64 only. I needed to apply my performance and logging aspects to check execution times of each method but when I went to compile I received a build error from PostSharp “Platform mismatch. You cannot run PostSharp on a [...]

    programmersunlimitedprogrammersunlimited

    ps-tabps-tab

  • 01/30/12--09:51: What I’ve learned by presenting at code camps (chan 1291347)
  • Last year, out of no where, I decided that I wanted to present at the San Diego Code Camp after receiving the email announcing it. I had never attended a code camp but I wanted to go. Why I wanted to present, not having any previous experience with code camps, is beyond me. I’m a [...]

    programmersunlimitedprogrammersunlimited

    Winking smileWinking smile

  • 02/01/12--22:39: It’s ok to mock a Person (chan 1291347)
  • Update I worked up a video on Typemock. Check it out. Original Post Ok, that’s a bad attempt at a humorous pun, but it’s still a valid statement. TDD exploded a few years ago and has gained tremendous following and prestige in the development community. I’ve never actually practiced TDD other than tutorials and more [...]

    programmersunlimitedprogrammersunlimited

    Winking smileWinking smile