public string SwiftNameForDotNetName(DotNetName netName)
        {
            string swiftName = null;

            netNamesToSwiftNames.TryGetValue(Ex.ThrowOnNull(netName, "netName"), out swiftName);
            return(swiftName);
        }
        public DotNetName DotNetNameForSwiftName(string swiftName)
        {
            DotNetName netName = null;

            swiftNamesToNetNames.TryGetValue(Ex.ThrowOnNull(swiftName, "swiftName"), out netName);
            return(netName);            // may be null
        }
Beispiel #3
0
        public IEnumerable <DotNetName> RegisterClasses(IEnumerable <TypeDeclaration> decl)
        {
            var allReg = new List <DotNetName> ();

            foreach (TypeDeclaration cl in decl)
            {
                DotNetName reg = RegisterClass(cl);
                allReg.Add(reg);
            }
            return(allReg);
        }
Beispiel #4
0
 public Entity GetEntityForDotNetName(DotNetName netName)
 {
     return(TypeDatabase.EntityForDotNetName(netName));
 }
Beispiel #5
0
        public EntityType GetEntityTypeForDotNetName(DotNetName netClassName)
        {
            var ent = TypeDatabase.EntityForDotNetName(netClassName);

            return(ent != null ? ent.EntityType : EntityType.None);
        }
 public Entity EntityForDotNetName(DotNetName netClassName)
 {
     return(EntityForSwiftName(netNamesToSwiftNames [netClassName]));
 }
 public bool Contains(DotNetName name)
 {
     return(netNamesToSwiftNames.ContainsKey(name));
 }