// Token: 0x060006EA RID: 1770 RVA: 0x0002BF20 File Offset: 0x0002A120 private Oid CreateOid(IDataReader reader, OleDbConnection connection) { Oid oid = new Oid(); oid.ID = DatabaseFunctions.GetString(reader, 4); oid.Name = DatabaseFunctions.GetString(reader, 2); oid.Description = DatabaseFunctions.GetString(reader, 5); oid.MIB = DatabaseFunctions.GetString(reader, 1); oid.Access = (AccessType)DatabaseFunctions.GetByte(reader, 6); oid.Status = (StatusType)DatabaseFunctions.GetByte(reader, 7); oid.Units = DatabaseFunctions.GetString(reader, 8); oid.StringType = DatabaseFunctions.GetString(reader, 10); oid.HasChildren = this.HasChildren(oid.ID, connection); oid.Enums = this.GetEnums(DatabaseFunctions.GetString(reader, 9)); oid.TreeIndex = DatabaseFunctions.GetInt32(reader, 0).ToString(); MibHelper.CleanupDescription(oid); MibHelper.SetTypeInfo(oid); return(oid); }
private Oid CreateOid(IDataReader reader, OleDbConnection connection) { Oid oid = new Oid(); oid.set_ID(DatabaseFunctions.GetString(reader, 4)); oid.set_Name(DatabaseFunctions.GetString(reader, 2)); oid.set_Description(DatabaseFunctions.GetString(reader, 5)); oid.set_MIB(DatabaseFunctions.GetString(reader, 1)); oid.set_Access((AccessType)(int)DatabaseFunctions.GetByte(reader, 6)); oid.set_Status((StatusType)(int)DatabaseFunctions.GetByte(reader, 7)); oid.set_Units(DatabaseFunctions.GetString(reader, 8)); oid.set_StringType(DatabaseFunctions.GetString(reader, 10)); oid.set_HasChildren(this.HasChildren(oid.get_ID(), connection)); oid.set_Enums(this.GetEnums(DatabaseFunctions.GetString(reader, 9))); oid.set_TreeIndex(DatabaseFunctions.GetInt32(reader, 0).ToString()); MibHelper.CleanupDescription(oid); MibHelper.SetTypeInfo(oid); return(oid); }