private JsonSchemaGenerator.TypeSchema Pop() { JsonSchemaGenerator.TypeSchema typeSchema1 = this._stack[this._stack.Count - 1]; this._stack.RemoveAt(this._stack.Count - 1); JsonSchemaGenerator.TypeSchema typeSchema2 = Enumerable.LastOrDefault <JsonSchemaGenerator.TypeSchema>((IEnumerable <JsonSchemaGenerator.TypeSchema>) this._stack); this._currentSchema = typeSchema2 == null ? (JsonSchema)null : typeSchema2.Schema; return(typeSchema1); }
private JsonSchemaGenerator.TypeSchema Pop() { JsonSchemaGenerator.TypeSchema item = this._stack[this._stack.Count - 1]; this._stack.RemoveAt(this._stack.Count - 1); JsonSchemaGenerator.TypeSchema typeSchema = this._stack.LastOrDefault <JsonSchemaGenerator.TypeSchema>(); if (typeSchema == null) { this._currentSchema = null; return(item); } this._currentSchema = typeSchema.Schema; return(item); }
private JsonSchemaGenerator.TypeSchema Pop() { JsonSchemaGenerator.TypeSchema result = this._stack.get_Item(this._stack.get_Count() - 1); this._stack.RemoveAt(this._stack.get_Count() - 1); JsonSchemaGenerator.TypeSchema typeSchema = Enumerable.LastOrDefault <JsonSchemaGenerator.TypeSchema>(this._stack); if (typeSchema != null) { this._currentSchema = typeSchema.Schema; } else { this._currentSchema = null; } return(result); }
private JsonSchemaGenerator.TypeSchema Pop() { JsonSchemaGenerator.TypeSchema result = this._stack[this._stack.Count - 1]; this._stack.RemoveAt(this._stack.Count - 1); JsonSchemaGenerator.TypeSchema typeSchema = this._stack.LastOrDefault <JsonSchemaGenerator.TypeSchema>(); if (typeSchema != null) { this._currentSchema = typeSchema.Schema; } else { this._currentSchema = null; } return(result); }
private void Push(JsonSchemaGenerator.TypeSchema typeSchema) { this._currentSchema = typeSchema.Schema; this._stack.Add(typeSchema); this._resolver.LoadedSchemas.Add(typeSchema.Schema); }