Пример #1
0
 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;
 }
Пример #2
0
 public AssociationProperty()
 {
     Child = new AssociationEndPoint();
     Parent = new AssociationEndPoint();
 }
Пример #3
0
        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;
        }