コード例 #1
0
        public string GetResourceString(string ResourceId, string ResourceSet, string CultureName)
        {
            string Value = Manager.GetResourceString(ResourceId, ResourceSet, CultureName);

            if (Value == null && !string.IsNullOrEmpty(Manager.ErrorMessage))
            {
                throw new ArgumentException(Manager.ErrorMessage);
            }

            return(Value);
        }
        public string GetResourceString(dynamic parm)
        {
            string resourceId = parm.ResourceId;
            string resourceSet = parm.ResourceSet;
            string cultureName = parm.CultureName;
            string value = Manager.GetResourceString(resourceId,
                resourceSet, cultureName);


            if (value == null && !string.IsNullOrEmpty(Manager.ErrorMessage))
                throw new ArgumentException(Manager.ErrorMessage);

            return value;
        }