SimpleFramework.Xml.Core.CompositeKey.Read C# (CSharp) 메소드

Read() 공개 메소드

This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then null is assumed and returned.
public Read ( InputNode node ) : Object
node InputNode /// this is the node to read the key value from ///
리턴 Object
      public Object Read(InputNode node) {
         Position line = node.getPosition();
         Class expect = type.Type;
         String name = entry.Key;
         if(name == null) {
            name = context.GetName(expect);
         }
         if(entry.IsAttribute()) {
            throw new ElementException("Can not have %s as an attribute at %s", expect, line);
         }
         return Read(node, name);
      }
      /// <summary>

Same methods

CompositeKey::Read ( InputNode node, Object value ) : Object
CompositeKey::Read ( InputNode node, String key ) : Object