private CodeTypeReference getCodeTypeReference(Schema schema)
{
CodeTypeReference typeref = null;
/* FIXME: Thiru
if (_PrimitiveLookup.TryGetValue(schema.type, out typeref))
return typeref;
*/
if (!_SchemaToCodeTypeReferenceLookup.TryGetValue(schema, out typeref))
{
processSchema(null, schema);
if (!_SchemaToCodeTypeReferenceLookup.TryGetValue(schema, out typeref))
{
throw new Exception("Could not determine type for " + schema);
}
}
return typeref;
}
}