ATML1671Translator.translator.TranslationLibrary.ConvertToCommonType C# (CSharp) Method

ConvertToCommonType() public method

public ConvertToCommonType ( string type ) : string
type string
return string
        public string ConvertToCommonType( string type )
        {
            if (string.IsNullOrEmpty( type ))
                type = "c:string";
            else
            {
                if (type.StartsWith( "c:" ))
                    type = type.Substring( 2 );
                if ("decimal".Equals(type))
                    type = "double";
                else if ("char".Equals(type))
                    type = "string";
                type = "c:" + type;
            }
            return type;
        }