public Deserialize ( byte ropBytes, int startIndex ) : int | ||
ropBytes | byte | ROPs bytes in response. |
startIndex | int | The start index of this ROP. |
리턴 | int |
/// <summary> /// Parse bytes in context into TaggedPropertyValueNode /// </summary> /// <param name="context">The value of Context</param> public override void Parse(Context context) { // Parse PropertyType and assign it to context's current PropertyType Microsoft.Protocols.TestSuites.Common.PropertyTag p = new PropertyTag(); context.CurIndex += p.Deserialize(context.PropertyBytes, context.CurIndex); context.CurProperty.Type = (PropertyType)p.PropertyType; this.PropertyTag = p; base.Parse(context); }
/// <summary> /// Parse bytes in context into TaggedPropertyValueNode /// </summary> /// <param name="context">The value of Context</param> public override void Parse(Context context) { // Parse PropertyType and assign it to context's current PropertyType Microsoft.Protocols.TestSuites.Common.PropertyTag p = new PropertyTag(); context.CurIndex += p.Deserialize(context.PropertyBytes, context.CurIndex); context.CurProperty.Type = (PropertyType)p.PropertyType; // this.PropertyTag = new PropertyTag(); this.PropertyTag = p; // context.CurIndex += this.PropertyTag.Deserialize(context.PropertyBytes, context.CurIndex); // context.CurProperty.Type = (PropertyType)this.PropertyTag.PropertyType; base.Parse(context); }