Ejemplo n.º 1
0
            public string GetValue(ModuleSettings settings)
            {
                var result = string.Empty;

                switch (this.type)
                {
                case Type.Constant:
                    result = this.value;
                    break;

                case Type.GetPermissions:
                    result = settings.GetPermissions();
                    break;
                }

                return(result);
            }
Ejemplo n.º 2
0
			public string GetValue(ModuleSettings settings) {

				var result = string.Empty;

				switch (this.type) {

				case Type.Constant:
					result = this.value;
					break;

				case Type.GetPermissions:
					result = settings.GetPermissions();
					break;

				}

				return result;

			}