public void ReadAttribute(string name, out SamAccountType? value) { int? numericValue; this.ReadAttribute(name, out numericValue); value = (SamAccountType?)numericValue; }
protected bool ReadAttribute(int attributeId, out SamAccountType? value) { int? numericValue; bool hasValue = this.ReadAttribute(attributeId, out numericValue); value = hasValue ? (SamAccountType)numericValue.Value : (SamAccountType?)null; return hasValue; }