Show / Hide Table of Contents

Class EcopediaFile

Inheritance
System.Object
EcopediaFile
Namespace: Eco.Shared.Localization
Assembly: Eco.Shared.dll
Syntax
public class EcopediaFile : Object

Constructors

EcopediaFile(FileInfo, XDocument)

Declaration
public EcopediaFile(FileInfo fileInfo, XDocument xml)
Parameters
Type Name Description
System.IO.FileInfo fileInfo
System.Xml.Linq.XDocument xml

Fields

CustomMerge

Declaration
public bool CustomMerge
Field Value
Type Description
System.Boolean

IconName

Declaration
public string IconName
Field Value
Type Description
System.String

Info

Declaration
public FileInfo Info
Field Value
Type Description
System.IO.FileInfo

PageName

Declaration
public string PageName
Field Value
Type Description
System.String

Priority

Declaration
public int Priority
Field Value
Type Description
System.Int32

RootName

Declaration
public string RootName
Field Value
Type Description
System.String

Sections

Declaration
public List<EcopediaSection> Sections
Field Value
Type Description
System.Collections.Generic.List<EcopediaSection>

SubpageName

Declaration
public string SubpageName
Field Value
Type Description
System.String

Xml

Declaration
public XDocument Xml
Field Value
Type Description
System.Xml.Linq.XDocument

Properties

IsChapter

Declaration
public bool IsChapter { get; }
Property Value
Type Description
System.Boolean

Root

Declaration
public XElement Root { get; }
Property Value
Type Description
System.Xml.Linq.XElement

Methods

Attribute(String)

Declaration
public string Attribute(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.String

Element(String)

Declaration
public string Element(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.String

ExtractHeaderStrings()

Declaration
public List<string> ExtractHeaderStrings()
Returns
Type Description
System.Collections.Generic.List<System.String>

Save()

Declaration
public void Save()

Translate(Dictionary<Int32, String>)

Declaration
public void Translate(Dictionary<int, string> locDictionary)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.Int32, System.String> locDictionary

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾