Updated all to use the ref parameter, tests are passing - now to see if they run any faster :)

This commit is contained in:
Shannon
2016-06-21 20:43:02 +02:00
parent 866df9c0b8
commit 33ca761441
34 changed files with 187 additions and 173 deletions

View File

@@ -33,13 +33,13 @@ namespace Umbraco.Core.Models
public string MigrationName
{
get { return _migrationName; }
set { _migrationName = SetPropertyValueAndDetectChanges(value, _migrationName, Ps.Value.NameSelector); }
set { SetPropertyValueAndDetectChanges(value, ref _migrationName, Ps.Value.NameSelector); }
}
public SemVersion Version
{
get { return _version; }
set { _version = SetPropertyValueAndDetectChanges(value, _version, Ps.Value.VersionSelector); }
set { SetPropertyValueAndDetectChanges(value, ref _version, Ps.Value.VersionSelector); }
}
}
}