Class describing properties.
Internal members protected for testability.
Inheritance: Rosetta.Translation.MemberTranslationUnit, ITranslationUnit
Ejemplo n.º 1
0
 /// <summary>
 /// Copy initializes a new instance of the <see cref="PropertyDefinitionTranslationUnit"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public PropertyDefinitionTranslationUnit(PropertyDefinitionTranslationUnit other)
     : base((MemberTranslationUnit)other)
 {
     this.type   = other.type;
     this.hasGet = other.hasGet;
     this.hasSet = other.hasSet;
 }
 /// <summary>
 /// Copy initializes a new instance of the <see cref="PropertyDefinitionTranslationUnit"/> class.
 /// </summary>
 /// <param name="other"></param>
 /// <remarks>
 /// For testability.
 /// </remarks>
 public PropertyDefinitionTranslationUnit(PropertyDefinitionTranslationUnit other)
     : base((MemberTranslationUnit)other)
 {
     this.type = other.type;
     this.hasGet = other.hasGet;
     this.hasSet = other.hasSet;
 }
Ejemplo n.º 3
0
 public static MockedPropertyDefinitionTranslationUnit Create(PropertyDefinitionTranslationUnit propertyDefinitionTranslationUnit)
 {
     return(new MockedPropertyDefinitionTranslationUnit(propertyDefinitionTranslationUnit));
 }
Ejemplo n.º 4
0
 protected MockedPropertyDefinitionTranslationUnit(PropertyDefinitionTranslationUnit original)
     : base(original)
 {
 }