private static void ParsedAssociationEndPointToNative(Parsing.associationEndPoint parsedEndPoint, AssociationEndPoint endPoint) { if (parsedEndPoint.accessSpecified) { endPoint.Access = (PropertyAccess)parsedEndPoint.access; } if (parsedEndPoint.inheritanceModifierSpecified) { endPoint.InheritanceModifier = (PropertyInheritanceModifier)parsedEndPoint.inheritanceModifier; } endPoint.Name = parsedEndPoint.name; }
public AssociationProperty() { Child = new AssociationEndPoint(); Parent = new AssociationEndPoint(); }
private static void NativeAssociationEndPointToParsed(AssociationEndPoint endPoint, Parsing.associationEndPoint parsedEndPoint) { if (endPoint.Access != PropertyAccess.Public) { parsedEndPoint.accessSpecified = true; parsedEndPoint.access = (Parsing.propertyAccess)endPoint.Access; } if (endPoint.InheritanceModifier != PropertyInheritanceModifier.None) { parsedEndPoint.inheritanceModifierSpecified = true; parsedEndPoint.inheritanceModifier = (Parsing.inheritanceModifier)endPoint.InheritanceModifier; } parsedEndPoint.name = endPoint.Name; }