public static CodeEntity New(CodeDescriptor aDescriptor, XmlSettingCategory aSettingsCategory) { CodeEntity ret = null; // if (aSettingsCategory.Contains(KSettingsKeyFileName)) { string fileName = aSettingsCategory[KSettingsKeyFileName]; ret = New(aDescriptor, FSEntity.New(fileName)); } // return(ret); }
public static CodeEntity New(CodeDescriptor aDescriptor, FSEntity aFSEntity) { CodeEntity ret = null; // Validate that it's a supported file if (aFSEntity.Exists && aFSEntity.IsFile) { string fileName = aFSEntity.FullName; bool isCode = aDescriptor.Engine.Code.IsSupported(fileName); if (isCode) { ret = new CodeEntity(aDescriptor, aFSEntity); } } // return(ret); }