System.Web.Script.Services.LogicalTypeInfo.GetLogicalTypeInfo C# (CSharp) Метод

GetLogicalTypeInfo() статический приватный Метод

static private GetLogicalTypeInfo ( Type t, string filePath ) : LogicalTypeInfo
t System.Type
filePath string
Результат LogicalTypeInfo
		static internal LogicalTypeInfo GetLogicalTypeInfo (Type t, string filePath) {
			Hashtable type_to_manager = _type_to_logical_type;
			LogicalTypeInfo tm = (LogicalTypeInfo) type_to_manager [t];

			if (tm != null)
				return tm;

			tm = CreateTypeInfo (t, filePath);
			type_to_manager [t] = tm;

			return tm;
		}

Usage Example

Пример #1
0
        private RestHandler(HttpContext context, Type type, string filePath)
        {
            LogicalTypeInfo logicalTypeInfo = LogicalTypeInfo.GetLogicalTypeInfo(type, filePath);
            HttpRequest     request         = context.Request;
            string          methodName      = request.PathInfo.Substring(1);

            if (logicalTypeInfo == null || String.IsNullOrEmpty(methodName))
            {
                ThrowInvalidOperationException(methodName);
            }

            _logicalMethodInfo = logicalTypeInfo [methodName];
            if (_logicalMethodInfo == null)
            {
                ThrowInvalidOperationException(methodName);
            }
        }
All Usage Examples Of System.Web.Script.Services.LogicalTypeInfo::GetLogicalTypeInfo