コード例 #1
0
 internal SetFieldCollectionCommand(object @object, string collectionName)
 {
     ValidateArguments(@object, collectionName);
     _object         = @object;
     _collectionName = collectionName;
     _fieldInfo      = GetMemberQuery.GetFieldInfoFor(_object.GetType(), _collectionName);
     ValidateField();
 }
コード例 #2
0
 internal SetFieldCommand(object destinationObject, string fieldName, object newValue) : base(destinationObject, fieldName, newValue)
 {
     _fieldInfo = GetMemberQuery.GetFieldInfoFor(destinationObject.GetType(), fieldName);
     ValidateField();
 }