예제 #1
0
        public static UserSecurityObject UserSecurityRowToObject(DataRow user)
        {
            UserSecurityObject obj = new UserSecurityObject();

            try
            {
                if (user != null)
                {
                    obj = (UserSecurityObject)PROF_IT.Common.Convert.Byte.ByteArrayToObject(RowFunctions.GetValueFromRowToByteArray(user, UserObject.SECURITY, true, DataRowVersion.Current));
                    return(obj);
                }
                obj = null;
            }
            catch (System.Exception exception1)
            {
                Exception innerException = exception1;
                throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
            return(obj);
        }