C# 클래스 gp.Files.FactDB

Create and Maintain a List of Random Facts.
파일 보기 프로젝트 열기: vatsal/getputs

공개 메소드들

메소드 설명
GetRandomFact ( ) : string

Get a Random Fact from the FactDB List [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

ReLoadList ( ) : void

Reload the FactDB List. [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

StoreFact ( string fullFilePath, int count ) : void

Get and Store n number of Random Facts from the factURL, where n = Count [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

비공개 메소드들

메소드 설명
FactDB ( ) : System

Reads Words File

메소드 상세

GetRandomFact() 공개 메소드

Get a Random Fact from the FactDB List [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public GetRandomFact ( ) : string
리턴 string

ReLoadList() 공개 메소드

Reload the FactDB List. [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public ReLoadList ( ) : void
리턴 void

StoreFact() 공개 메소드

Get and Store n number of Random Facts from the factURL, where n = Count [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public StoreFact ( string fullFilePath, int count ) : void
fullFilePath string The Path and the FileName.
count int The number of Facts to be returned.
리턴 void