Skip to content

Commit

Permalink
Update DeltaPatcher.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
viklele committed Jun 26, 2014
1 parent 6941266 commit 0bbb323
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/DeltaPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class DeltaPatcher<T> : DynamicObject
/// </summary>
public DeltaPatcher()
{
// cache patchable properties for later use, we don't have to
// look for them in every instance of T
if (m_patchableProperties == null)
{
m_patchableProperties = new Dictionary<string, PropertyInfo>();
Expand All @@ -30,7 +32,7 @@ public DeltaPatcher()
{
if (prop.CanWrite)
{
// create dynamic properties of Delta
// Skip not patchable properties
var attr = prop.GetCustomAttribute(typeof(NotPatchableAttribute));
if (attr == null)
{
Expand Down

0 comments on commit 0bbb323

Please sign in to comment.